You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unexpected value 'MyCustomModule' imported by the module 'AppModule' #1114
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.
+1, I had the same problem, changing modules: [helpers.root('src'), 'node_modules']
to modules: [helpers.root('src'), helpers.root('node_modules')],
helped me
Reacted by Renaud Hébert-Legault and Jean-Matthieu BARBIER
I am getting below error while running AoT. I am using System.js.
ngc -p tsconfig-aot.json
Error: Unexpected value 'NgSemanticModule' imported by the module 'AppModule'
at F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:13996:37
at Array.forEach (native)
at CompileMetadataResolver.getNgModuleMetadata (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:13981:46)
at F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12801:47
at Array.forEach (native)
at analyzeModules (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12800:17)
at OfflineCompiler.analyzeModules (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12826:18)
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.
Activity
BioSin commentedon Oct 24, 2016
+1, I had the same problem, changing
modules: [helpers.root('src'), 'node_modules']to
modules: [helpers.root('src'), helpers.root('node_modules')],helped me
anil1712 commentedon Oct 26, 2016
I am getting below error while running AoT. I am using
System.js.ngc -p tsconfig-aot.jsonError: Unexpected value 'NgSemanticModule' imported by the module 'AppModule'
at F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:13996:37
at Array.forEach (native)
at CompileMetadataResolver.getNgModuleMetadata (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:13981:46)
at F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12801:47
at Array.forEach (native)
at analyzeModules (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12800:17)
at OfflineCompiler.analyzeModules (F:\project_web\node_modules@angular\compiler\bundles\compiler.umd.js:12826:18)
Please help me to out of it
jmbarbier commentedon Nov 16, 2016
Solved same problem while using v6 with @Renaud009 solution.
sachanacar commentedon Jan 11, 2017
Hey @anil1712, I'm also having the same problem and I also use SystemJS. All answers I see online are for Webpack sadly :(
tom10271 commentedon Jan 12, 2017
Same error and I use SystemJs too
sachanacar commentedon Jan 12, 2017
@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?
joshwiens commentedon Jan 12, 2017
@sachanacar - This is definitely the wrong place to inquire about SystemJS
sachanacar commentedon Jan 12, 2017
@d3viant0ne true, I'm just desperate for answers!
joshwiens commentedon Jan 12, 2017
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.
sachanacar commentedon Jan 12, 2017
@d3viant0ne thanks, I'll try to convince the team!