I'm trying to build a library with angular 6 but I'm facing some problems.
Before adding --SoumissionStructComponent-- to my library module nothing wrong happens
But once I add it i got this one
TypeError: Cannot read property 'toString' of undefined
at new Input (C:\Users\taha.manar\Documents\workspace\Adjucation-Ihm\node_modules\ng-packagr\node_modules\postcss\lib\input.js:53:20)
at parse (C:\Users\taha.manar\Documents\workspace\Adjucation-Ihm\node_modules\ng-packagr\node_modules\postcss\lib\parse.js:13:15)
at new LazyResult (C:\Users\taha.manar\Documents\workspace\Adjucation-Ihm\node_modules\ng-packagr\node_modules\postcss\lib\lazy-result.js:60:16)
at Processor.<anonymous> (C:\Users\taha.manar\Documents\workspace\Adjucation-Ihm\node_modules\ng-packagr\node_modules\postcss\lib\processor.js:138:12)
...
SoumissionStructComponent.ts
import { Component, OnInit } from '@angular/core';
import { SoumissionService } from './soumission.service';
import { ListElements, ElementList } from './../Common/root-page/model/ElementList';
@Component({
selector: 'app-soumission-struct',
templateUrl: './soumission-struct.component.html',
styleUrls: ['./soumission-struct.component.css']
})
export class SoumissionStructComponent implements OnInit {
listElements: ListElements;
elementsList: ElementList[] = [];
constructor(private soumissionService: SoumissionService) {
soumissionService.getActivatedSoumission().subscribe((r: any) => {
this.listElements = new ListElements();
this.listElements.listElts = [];
if (r) {
this.listElements.listElts.push({ key: r.id, value: r.seanceDate });
}
});
}
ngOnInit() {
}
}
Hope i've described the problem clearly