angular5 echarts-ng2编译不过,报以上错误,谁给提点下
凤凰涅檠 2017-11-06 01:26:56 "@angular/cli": "^1.5.0",
"typescript": "~2.4.2"
"echarts": "^3.7.2",
"echarts-ng2": "^1.4.1",
以上为运行环境angular5,报错消息如下:
ERROR in ./node_modules/_echarts-ng2@1.4.1@echarts-ng2/src/component/echarts-ng2.component.ts
Module build failed: Error: D:\Work\Html\PowerSales\node_modules\_echarts-ng2@1.4.1@echarts-ng2\src\component\echarts-ng2.component.ts is not part of the compilation. Please make sure it is in your tsconfig via the 'files' or
'include' property.
at AngularCompilerPlugin.getCompiledFile (D:\Work\Html\PowerSales\node_modules\_@ngtools_webpack@1.8.0@@ngtools\webpack\src\angular_compiler_plugin.js:624:23)
at plugin.done.then (D:\Work\Html\PowerSales\node_modules\_@ngtools_webpack@1.8.0@@ngtools\webpack\src\loader.js:467:39)
@ ./node_modules/_echarts-ng2@1.4.1@echarts-ng2/src/index.js 6:9-53
@ ./src/app/client/client.module.ts
@ ./src/$$_lazy_route_resource lazy
@ ./node_modules/_@angular_core@5.0.0@@angular/core/esm5/core.js
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
ERROR in ./node_modules/_echarts-ng2@1.4.1@echarts-ng2/src/component/echarts-ng2.module.ts
Module build failed: Error: D:\Work\Html\PowerSales\node_modules\_echarts-ng2@1.4.1@echarts-ng2\src\component\echarts-ng2.module.ts is not part of the compilation. Please make sure it is in your tsconfig via the 'files' or 'in
clude' property.
at AngularCompilerPlugin.getCompiledFile (D:\Work\Html\PowerSales\node_modules\_@ngtools_webpack@1.8.0@@ngtools\webpack\src\angular_compiler_plugin.js:624:23)
at plugin.done.then (D:\Work\Html\PowerSales\node_modules\_@ngtools_webpack@1.8.0@@ngtools\webpack\src\loader.js:467:39)
@ ./node_modules/_echarts-ng2@1.4.1@echarts-ng2/src/index.js 7:9-50
@ ./src/app/client/client.module.ts
@ ./src/$$_lazy_route_resource lazy
@ ./node_modules/_@angular_core@5.0.0@@angular/core/esm5/core.js
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts