Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular5 报错 #27

Closed
lyc152 opened this issue Jan 30, 2018 · 4 comments
Closed

angular5 报错 #27

lyc152 opened this issue Jan 30, 2018 · 4 comments

Comments

@lyc152
Copy link

lyc152 commented Jan 30, 2018

Module build failed: Error: /node_modules/echarts-ng2/src/component/echarts-ng2.component.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:653:23)
at plugin.done.then (/Users/petter/Documents/workspace/dianrong/people-ui/node_modules/@ngtools/webpack/src/loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./node_modules/echarts-ng2/src/index.js 6:9-53
@ ./src/app/routes/customer/customer.module.ts
@ ./src/$$_lazy_route_resource lazy
@ ./node_modules/@angular/core/esm5/core.js
@ ./src/main.ts
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

@lyc152
Copy link
Author

lyc152 commented Jan 30, 2018

看到答案了:#22 (comment)

@lyc152 lyc152 closed this as completed Jan 30, 2018
@lyc152
Copy link
Author

lyc152 commented Mar 7, 2018

在build 的时候还是会报这个错误,在ng上面,按照 #22 (comment) 中的操作还是不能 ng build --prod --build-optimize 成功

@lyc152 lyc152 reopened this Mar 7, 2018
@twp0217
Copy link
Owner

twp0217 commented Mar 8, 2018

稍等,周末更新angular5的新版本

@twp0217
Copy link
Owner

twp0217 commented Mar 11, 2018

已发布新版本,请更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants