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
main.331a9edcffa8ca2717f0.js:1 Uncaught Error: Unexpected value 'e' imported by the module 'function(){}'. Please add a @NgModule annotation.
at ka (main.331a9edcffa8ca2717f0.js:1)
at main.331a9edcffa8ca2717f0.js:1
at Array.forEach (<anonymous>)
at e.getNgModuleMetadata (main.331a9edcffa8ca2717f0.js:1)
at e._loadModules (main.331a9edcffa8ca2717f0.js:1)
at e._compileModuleAndComponents (main.331a9edcffa8ca2717f0.js:1)
at e.compileModuleAsync (main.331a9edcffa8ca2717f0.js:1)
at e.compileModuleAsync (main.331a9edcffa8ca2717f0.js:1)
at e.bootstrapModule (main.331a9edcffa8ca2717f0.js:1)
at Object.zUnb (main.331a9edcffa8ca2717f0.js:1)
Expected behavior
It should work.
Minimal reproduction of the problem with instructions
ng new MyProject
cd MyProject
EDIT line "aot": true, replace by "aot": false
ng serve --configuration production
I think this is related to a bug where we didn't error out if AOT was off and Build Optimizer was on. We should error because Build Optimizer only works with AOT.
This is fixed in #11657, but if you still see this behavior let me know so I can reopen.
I'm submitting a...
Current behavior
Expected behavior
It should work.
Minimal reproduction of the problem with instructions
Navigate to http://localhost:4200/
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: