-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Versions
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.6.4
Node: 8.9.1
OS: darwin x64
Angular: 5.2.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.6.4
@angular-devkit/build-optimizer: 0.0.38
@angular-devkit/core: 0.0.25
@angular-devkit/schematics: 0.0.48
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.4
@schematics/angular: 0.1.13
@schematics/schematics: 0.0.13
typescript: 2.6.2
webpack: 3.10.0
Observed behavior
-
Running via
ng serve --aot --progress=false --proxy-config proxy.conf.json
and no errors in the console, everything works well. -
Running a build via
ng build --aot
and the output files work just like ng serve above. -
Running via
ng serve --aot --prod
and the application won't render and the following console messages appears. -
Running via
ng build --aot --prod
and the application won't render with the same console messages asng serve --aot --prod
.
FireFox Error:
TypeError: t[r] is undefined main.1eda0feb0dddc7c4747b.bundle.js:1:791705
Chrome Error:
Uncaught TypeError: Cannot read property 'call' of undefined main.d8cd32d2ec09f8365918.bundle.js:1
at n (main.d8cd32d2ec09f8365918.bundle.js:1)
at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
at n (main.d8cd32d2ec09f8365918.bundle.js:1)
at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
at n (main.d8cd32d2ec09f8365918.bundle.js:1)
at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
at n (main.d8cd32d2ec09f8365918.bundle.js:1)
at Object.t.exports (main.d8cd32d2ec09f8365918.bundle.js:1)
at n (main.d8cd32d2ec09f8365918.bundle.js:1)
at Object.<anonymous> (main.d8cd32d2ec09f8365918.bundle.js:1)
Desired behavior
when appending --prod no errors should be produced
Mention any other details that might be useful (optional)
I'm at a bit of a loss as I have no idea how to debug this. Is is the compiler or something I'm doing?
I can provide the repo if needed.
m-ghaoui, NickToony, darkurse, vikash20186, Javarthur and 4 more
Metadata
Metadata
Assignees
Labels
No labels