question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

production build not working

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[ ] feature request

Current behavior

After a fresh git clone / npm install, I run npm run build:universal-prod

screen shot 2017-05-09 at 5 37 09 pm I get this issue 4 times.

screen shot 2017-05-09 at 5 37 26 pm

Then :

screen shot 2017-05-09 at 5 37 35 pm

Expected/desired behavior

Build files ready for universal production server.

Minimal reproduction of the problem with instructions npm run build:universal-prod

Please tell us about your environment:

Mac OS, yarn.

  • Angular version: 4.1.0
  • Node (for AoT issues): node --version = 6.9.1

Thanks !

PS : it might be that I don’t completely understand how to run production. If so, I can create a PR modifying the readme.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
fulls1z3commented, May 11, 2017

I solved this by forcing the uglify-js deps to use version git://github.com/mishoo/UglifyJS2#harmony-v2.8.22.

Get the latest version of this repository, and remove webpack and uglify-js dirs from node_modules and run npm install/yarn et voila!

0reactions
fulls1z3commented, May 10, 2017

Let’s leave it because I could not reproduce it (using fulls1z3/webpack as a dependency). Let’s keep this open for a few more days, and let’s see.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why won't React production build run on the browser?
Sometimes the reason that the content is not served is because the command of "serve -s" was executed from outside of the build...
Read more >
Build not working for production - White Page
Hi, I'm trying to generate a build to upload it to our dev server but i'm facing some problems, i hope you can...
Read more >
React production build not working · Discussion #8119 - GitHub
I've got a super basic React application which has HTML, SCSS and JS. When running it locally everything is fine and works perfectly....
Read more >
Optimizing Performance - React
If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production build.
Read more >
Reactjs Build Production: Optimize Performance - CopyCat Blog
In this article, we will be taking a deep dive into the Reactjs build production, deployment, and tips on optimising your app's performance....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found