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
Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
Error: Tried to find bootstrap code, but could not. Specify either statically analyzable bootstrap code or pass in an entryModule to the plugins options.
at Object.resolveEntryModuleFromMain (\test\node_modules\@ngtools\webpack\src\entry_resolver.js:131:11)
at AotPlugin._setupOptions (\test\node_modules\@ngtools\webpack\src\plugin.js:187:50)
at new AotPlugin (\test\node_modules\@ngtools\webpack\src\plugin.js:31:14)
at _createAotPlugin (\test\node_modules\@angular\cli\models\webpack-configs\typescript.js:92:16)
at Object.getNonAotConfig (\test\node_modules\@angular\cli\models\webpack-configs\typescript.js:100:19)
at NgCliWebpackConfig.buildConfig (\test\node_modules\@angular\cli\models\webpack-config.js:37:37)
at Class.run (\test\node_modules\@angular\cli\tasks\serve.js:71:98)
at check_port_1.checkPort.then.port (\test\node_modules\@angular\cli\commands\serve.js:123:26)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
Versions
not related
Repro steps
Observed behavior
see https://github.com/angular/devkit/blob/master/packages/ngtools/webpack/src/entry_resolver.ts#L91
The
_symbolImportLookup
only findImportDeclaration
but notImportCall
, so it can't be analyzed.Desired behavior
Angular-cli support dynamic import of
AppModule
The text was updated successfully, but these errors were encountered: