嘗試構建角度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)
我真的在失去從哪裏開始解決這個問題。 我已經擦掉了我的節點模塊,試圖解決這個問題,但仍然沒有運氣。
很難說,你可以發佈一個plunkr嗎?你有班級叫「班」嗎?你忘了「導出」一堂課嗎?你是否擴展了一個沒有導出的類或者有一個私有的構造函數? – Guntram