-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
🐞 Bug report
Command (mark with an x
)
- new
- [ x] build
- [ x] serve
Description
When building the App with the --prod=true
flag it renders as a blank screen.
I discovered this after pushing the App to Github Pages and seeing nothing. This is an SO post I created while trying to diagnose this:
https://stackoverflow.com/questions/59596387/angular-app-deployed-to-github-pages-not-initializing
The error shown in the console is obscure for this. This is what it says:
main-es2015.5c2edd6f312ad6930668.js:1 Uncaught ReferenceError: process is not defined
at Object.2U8Y (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Module.zUnb (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Object.0 (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at t (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Array.r [as push] (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at main-es2015.5c2edd6f312ad6930668.js:1
This is the deployed app that produces the error:
https://fsalpha-canary.fireflysemantics.com/
Just open up the console in chrome to see it.
I'll also include a screen shot of it.
A clear and concise description of the problem...ng serve -o
Will work.
ng serfve -o --prod=true
Just renders an app that does not initialize and only provides an obscure error.
🔬 Minimal Reproduction
I'm going to have to start building the entire app piece by piece from scratch now to figure out what is causing the hangup.
Just wanted to report that this is the case .
🔥 Exception or Error
main-es2015.5c2edd6f312ad6930668.js:1 Uncaught ReferenceError: process is not defined
at Object.2U8Y (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Module.zUnb (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Object.0 (main-es2015.5c2edd6f312ad6930668.js:1)
at l (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at t (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at Array.r [as push] (runtime-es2015.e59a6cd8f1b6ab0c3f29.js:1)
at main-es2015.5c2edd6f312ad6930668.js:1
🌍 Your Environment
ole@mkt:~$ ng version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 9.0.0-rc.3
Node: 12.6.0
OS: linux x64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.900.0-rc.3
@angular-devkit/core 9.0.0-rc.3
@angular-devkit/schematics 9.0.0-rc.3
@schematics/angular 9.0.0-rc.3
@schematics/update 0.900.0-rc.3
rxjs 6.5.3