Hello, I am struggling with custom bootstrap code and AOT. We have a custom bootstrap function which is called in the main.ts
See my gist https://gist.github.com/CSchulz/417cb63c5cf70e7f250cee6fef7da1ee When I run it with JIT everything works fine in the browser. Running it with AOT I get following error: Uncaught Error: No NgModule metadata found for 'class{}'. at NgModuleResolver.resolve (rs/webpack:/abc/node_modules/@angular/compiler/fesm2015/compiler.js:20900) at CompileMetadataResolver.getNgModuleMetadata (rs/webpack:/abc/node_modules/@angular/compiler/fesm2015/compiler.js:20029) at JitCompiler._loadModules (rs/webpack:/abc/node_modules/@angular/compiler/fesm2015/compiler.js:25824) at JitCompiler._compileModuleAndComponents (rs/webpack:/abc/node_modules/@angular/compiler/fesm2015/compiler.js:25807) at JitCompiler.compileModuleAsync (rs/webpack:/abc/node_modules/@angular/compiler/fesm2015/compiler.js:25769) at useClass.compileModuleAsync (rs/webpack:/abc/node_modules/@angular/platform-browser-dynamic/fesm2015/platform-browser-dynamic.js:223) at compileNgModuleFactory (rs/webpack:/abc/node_modules/@angular/core/fesm2015/core.js:40264) at PlatformRef.bootstrapModule (rs/webpack:/abc/node_modules/@angular/core/fesm2015/core.js:40599) at bootstrapFn (rs/webpack:/abc/dist/commons/fesm2015/huk-apps-commons.js:2485) at SafeSubscriber._next (rs/webpack:/abc/dist/commons/fesm2015/huk-apps-commons.js:2517) I have tried to debug the issue and it seems that my AppModule is called class anonymous and has no annotations anymore. Any ideas? Best Regards -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/ffd017d0-4973-4870-8232-2212f9207b18%40googlegroups.com.
