Angular 奇数ng构建错误

Angular 奇数ng构建错误,angular,typescript,Angular,Typescript,尝试构建angular 4应用程序时出现异常错误。见下文: Class extends value undefined is not a constructor or null TypeError: Class extends value undefined is not a constructor or null at Object.<anonymous> (/home/ptdave/projects/sidr-ts/node_modules/@angular/cli/p

尝试构建angular 4应用程序时出现异常错误。见下文:

 Class extends value undefined is not a constructor or null
TypeError: Class extends value undefined is not a constructor or null
    at Object.<anonymous> (/home/ptdave/projects/sidr-ts/node_modules/@angular/cli/plugins/named-lazy-chunks-webpack-plugin.js:9:51)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/ptdave/projects/sidr-ts/node_modules/@angular/cli/models/webpack-configs/common.js:6:44)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
未定义的类扩展值不是构造函数或null
TypeError:未定义的类扩展值不是构造函数或null
反对。(/home/ptdave/projects/sidr ts/node_modules/@angular/cli/plugins/named lazy chunks webpack plugin.js:9:51)
在模块处编译(模块js:571:32)
在Object.Module.\u extensions..js(Module.js:580:10)
在Module.load(Module.js:488:32)
在tryModuleLoad时(module.js:447:12)
在Function.Module.\u加载(Module.js:439:3)
at Module.require(Module.js:498:17)
根据需要(内部/module.js:20:19)
反对。(/home/ptdave/projects/sidr ts/node_modules/@angular/cli/models/webpack configs/common.js:6:44)
在模块处编译(模块js:571:32)
在Object.Module.\u extensions..js(Module.js:580:10)
在Module.load(Module.js:488:32)
在tryModuleLoad时(module.js:447:12)
在Function.Module.\u加载(Module.js:439:3)
at Module.require(Module.js:498:17)
根据需要(内部/module.js:20:19)
我真的不知道从哪里开始解决这个问题。
我已经清除了试图修复此问题的节点模块,但仍然没有成功。

当您有一个类扩展了另一个尚未启动的类时,就会发生这种情况。 通常是因为类之间的循环依赖关系

a、 js

b、 js

c、 js


我最终发现了这个问题。出于任何原因,my package.json不包含angular cli的网页包。启动一个新的节点会把整个事情搞砸。不管怎样,谢谢你的猜测。

很难说,你能发一封邮件吗?你们有一门叫做“课堂”的课吗?你忘了导出一个类了吗?您是否扩展了一个未导出或具有私有构造函数的类?您知道一种让angular/typescript识别的方法吗?那个错误信息是我得到的唯一信息。
import {c} from c.js
export class a {}
import {a} from a.js
export class b { }
import {b} from b.js
export class c extends b{}