我正在尝试建立一个角度为6的库,但遇到了一些问题。
在向我的库模块添加--SoumissionStructComponent--之前,没有发生任何错误
但是一旦添加,我就得到了
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)
...
Run Code Online (Sandbox Code Playgroud)
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 = …Run Code Online (Sandbox Code Playgroud) angular ×1