-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] New ember app fails in production build #19912
Comments
Opened issue on welcome page here: ember-cli/ember-welcome-page#385 So, if anyone else comes across this issue, the fix is to delete |
This is known and intentional. |
Could use a more descriptive error tho. This bug report could actually be: Error is incorrect for situation. Not directly actionable |
I think showing a build time warning if welcome-page addon is used in production would be enough. |
See emberjs/ember.js#19912 for details
note that the default welcome screen is borked in production emberjs/ember.js#19912
This PR updates the ember example using the following: ``` npx ember new ember-quickstart --lang en ``` I also had to add `{ 'ember-welcome-page': { enabled: true } }` to the build config because the `<WelcomePage>` only works in dev, but throws when using the default build command: ``` ember build --environment=production ``` For posterity, the error looks like: ``` Uncaught TypeError: Cannot destructure property 'manager' of 'e' as it is null. at u.resolvedComponent (vendor-2e12520b7a71eead28708a24fafa7fbc.js:2094:28) at vendor-2e12520b7a71eead28708a24fafa7fbc.js:1999:5 at ne (vendor-2e12520b7a71eead28708a24fafa7fbc.js:1999:30) at l (vendor-2e12520b7a71eead28708a24fafa7fbc.js:1991:18) at vendor-2e12520b7a71eead28708a24fafa7fbc.js:1981:836 at _.compile (vendor-2e12520b7a71eead28708a24fafa7fbc.js:1938:173) at re (vendor-2e12520b7a71eead28708a24fafa7fbc.js:1991:61) at vendor-2e12520b7a71eead28708a24fafa7fbc.js:1988:30 at ee.compile (vendor-2e12520b7a71eead28708a24fafa7fbc.js:1989:23) at Object.evaluate (vendor-2e12520b7a71eead28708a24fafa7fbc.js:2431:224) ``` - Related emberjs/ember.js#19912 - Related ember-cli/ember-welcome-page#385
🐞 Describe the Bug
After creating a new ember app and running the production build, there is a runtime error:
Disabling
ember-cli-terser
doesn't fix the problem, and I get the more readable version of the error:🔬 Minimal Reproduction
Run
ember new my-app && cd my-app && ember s --environment=production
😕 Actual Behavior
We get a runtime error.
🤔 Expected Behavior
App should work without errors.
🌍 Environment
The text was updated successfully, but these errors were encountered: