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
Latest @ngtools/webpack breaks compilation - Uncaught Error: No NgModule metadata found for 't'. #6833
Comments
@hansl can you take a look? |
I also have this problem, |
1 similar comment
I also have this problem, |
This might be related to or share a root cause with my issue here: https://github.com/clbond/angular-ssr/issues/44 In that instance, @clbond concluded that the error was probably from multiple instances of reflect-metdadata being loaded into this SSR process, which was/is most likely being caused by my project's Docker image having another node_modules accessible to the rendering script (at a higher level in the filesystem). |
I am also getting this error |
@ChrisDalley @filipesilva @Alekcei @buu700 @webdeveloperneeraj @hansl I wanted bring some information to this issue, as my name and repo was mentioned earlier. It was working fine with @ngtools/webpack After upgrading to
Well, this message contains no relevant information about
It made a sense, and I added As a result, the compilation and serving the app were both successful 🎉 I don't suggest anyone this workaround as a complete solution, but I hope it could help people to correct their compilation and supply some idea to the Angular team. main.ts// angular
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
// libs
import { bootloader } from '@angularclass/bootloader';
// app
import { AppModule } from './app/app.module';
export function main(): any {
return platformBrowserDynamic().bootstrapModule(AppModule);
}
// HMR support
if (module['hot'])
module['hot'].accept();
bootloader(main); main-aot.ts// angular
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
// libs
import { bootloader } from '@angularclass/bootloader';
// app
import { AppModuleNgFactory } from './app/app.module.ngfactory';
export function main(): any {
return platformBrowserDynamic().bootstrapModuleFactory(AppModuleNgFactory);
}
bootloader(main); P.S.: I know these are not the entry points contain add-on's such as |
I recently run into this issue when upgrading a Setup with HMR to Angular 5 rc6 and CLI to 1.5 rc3. I could resolve the issue by removing access to
was changed to
I'm leaving this here since a google search brought myself here |
Closing this as answered/fixed. |
I had to remove the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
Hi Angular CLI team! I have been using
@ngtools/webpack
to build and compile my angular universal app based on @fulls1z3 's ng-seed/universal repo.With versions 1.3.3 and before, our builds have been working fine but since the latest releases 1.4.2, we have been getting errors raised when running our apps webpack bundles. See related issue ng-seed/universal#29.
Webpack/Node does not error during the build process but upon running the app, we get this in the console. We have reverted back to 1.3.3 whilst we look for a fix to this but wanted to raise it to see if you can help.
Mention any other details that might be useful.
ng-seed/universal
The text was updated successfully, but these errors were encountered: