-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unexpected value 'MyCustomModule' imported by the module 'AppModule' #1114
Comments
+1, I had the same problem, changing |
I am getting below error while running AoT. I am using
ngc -p tsconfig-aot.json
Please help me to out of it |
Solved same problem while using v6 with @Renaud009 solution. |
Hey @anil1712, I'm also having the same problem and I also use SystemJS. All answers I see online are for Webpack sadly :( |
Same error and I use SystemJs too |
@tom10271 I've been trying to use systemjs-builder to bundle files together. However, I'm getting "TypeError: Cannot read property 'annotations' of undefined" in the console when I try to load the bundle. I know Webpack has a plugin to automatically load the bundle in the browser, does SystemJS have that too? |
@sachanacar - This is definitely the wrong place to inquire about SystemJS |
@d3viant0ne true, I'm just desperate for answers! |
I started using systemjs, the best advice I could give you at this point is bite the bullet, convert whatever project you are running to Webpack and save yourself the aggravation. Future specs aside, Webpack ended up with all of the community support which is what eventually got me to make the switch about 6 months ago. I haven't regretted that decision personally or professionally. |
@d3viant0ne thanks, I'll try to convince the team! |
Today I had trouble importing an external component with Application NgModule. Following this issue angular/angular#11438 it led me to consider it had to do with Webpack configuration.
If it happens to anyone else, note that changing this line in webpack.common.js of current project worked well for me:
The text was updated successfully, but these errors were encountered: