question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No NgModule metadata found for '" + stringify(type) on npm run serve:ssr

See original GitHub issue

PS D:\universal> npm run serve:ssr

angular-io-example@1.0.0 serve:ssr D:\universal node dist/server.js

D:\universal\dist\server.js:56323 throw new Error(“No NgModule metadata found for '” + stringify(type) + “'.”); ^

Error: No NgModule metadata found for ‘function (e,r){this.platformId=e,this.appId=r;var n=t.isPlatformBrowser(e)?“on the server”:“in the browser”;console.log(“Running “+n+” with appId=”+r)}’. at NgModuleResolver.resolve (D:\universal\dist\server.js:56323:23) at CompileMetadataResolver.getNgModuleMetadata (D:\universal\dist\server.js:51313:60) at JitCompiler._loadModules (D:\universal\dist\server.js:69797:87) at JitCompiler._compileModuleAndComponents (D:\universal\dist\server.js:69758:36) at JitCompiler.compileModuleAsync (D:\universal\dist\server.js:69674:37) at CompilerImpl.compileModuleAsync (D:\universal\dist\server.js:86507:49) at PlatformRef.bootstrapModule (D:\universal\dist\server.js:6666:25) at Object.cDNt (D:\universal\dist\server.js:113637:1152) at n (D:\universal\dist\server.js:113637:158) at Object.0 (D:\universal\dist\server.js:113637:545) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! angular-io-example@1.0.0 serve:ssr: node dist/server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-io-example@1.0.0 serve:ssr script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pc\AppData\Roaming\npm-cache_logs\2018-01-29T09_52_52_858Z-debug.log PS D:\universal> npm run serve:ssr

angular-io-example@1.0.0 serve:ssr D:\universal node dist/server.js

D:\universal\dist\server.js:56323 throw new Error(“No NgModule metadata found for '” + stringify(type) + “'.”); ^

Error: No NgModule metadata found for ‘function (e,r){this.platformId=e,this.appId=r;var n=t.isPlatformBrowser(e)?“on the server”:“in the browser”;console.log(“Running “+n+” with appId=”+r)}’. at NgModuleResolver.resolve (D:\universal\dist\server.js:56323:23) at CompileMetadataResolver.getNgModuleMetadata (D:\universal\dist\server.js:51313:60) at JitCompiler._loadModules (D:\universal\dist\server.js:69797:87) at JitCompiler._compileModuleAndComponents (D:\universal\dist\server.js:69758:36) at JitCompiler.compileModuleAsync (D:\universal\dist\server.js:69674:37) at CompilerImpl.compileModuleAsync (D:\universal\dist\server.js:86507:49) at PlatformRef.bootstrapModule (D:\universal\dist\server.js:6666:25) at Object.cDNt (D:\universal\dist\server.js:113637:1152) at n (D:\universal\dist\server.js:113637:158) at Object.0 (D:\universal\dist\server.js:113637:545) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! angular-io-example@1.0.0 serve:ssr: node dist/server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-io-example@1.0.0 serve:ssr script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pc\AppData\Roaming\npm-cache_logs\2018-01-29T09_57_58_448Z-debug.log PS D:\universal>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
walidJavacommented, Apr 26, 2018

so, haw we can solve the problem ?

1reaction
balajihambeerecommented, Feb 1, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 2 : No NgModule metadata found - Stack Overflow
After upgrading to Angular 6, I encountered the "ERROR in No NgModule metadata found for 'AppModule'." with the angular-bootstrap-md package, which requires ...
Read more >
JsonPipe - Angular
A value of any type to convert into a JSON-format string. Usage noteslink. The following component uses a JSON pipe to convert an...
Read more >
No NgModule metadata found for 'AppModule' ... when trying t
When trying to serve admin-pro from IntelliJ - or issue ng serve from command line respectively - I get the error message 'No...
Read more >
angular/angular - Gitter
any ideas why I'd get Property 'PROP' does not exist on type 'typeof Types'. ... Error: No NgModule metadata found for 'ModuleName'.
Read more >
@angular/platform-server | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found