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.

Creating a production build (yarn dist) fails

See original GitHub issue

Getting a minifying error when compiling the source for a production build. This should be fixed in react-scripts 2.0 and already has preliminary work done in branch fix/buildingIssues

Expected Behavior

yarn dist creates a production build.

Current Behavior

yarn dist fails (see screenshot) screenshot 2018-05-01 18 53 35

Possible Solution

Update the fix/buildingIssues branch - rebase it to develop’s HEAD - and fix whatever causes the tests to fail.

Steps to Reproduce (for bugs)

  1. Checkout develop
  2. yarn
  3. yarn dist

Context

Creating a production build is critical for mass adoption.

Your Environment

  • Version used: develop branch @ latest commit
  • Environment name and version: node v8.11.0, npm 5.6.0, nvm 0.33.6
  • Operating System and version: macOS Sierra

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
mhugginscommented, May 10, 2018

Pretty sure I’ve got a fix for this, just need to move it out of my working branch into its own branch/PR. I’ll push it up ASAP in the morning.

1reaction
jeroenptrscommented, May 1, 2018

@mhuggins If I recall correctly it failed on my end even with the neon-js src removed (it just stopped at a different point). I think it has something to do with react-scripts v1 not supporting specific es6 functions but I could be wrong. I will try to replicate this tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

production causes error while yarn build not - Stack Overflow
while yarn install and then yarn build succeeds. I have updated with dependencies. I installed yarn add @types/react-router-dom and it lies ...
Read more >
How to fix build failures with `create-react-app` in production
If your build is using create-react-app and has been failing since approximately the 18th of June 2020, this post will help you fix...
Read more >
Error Codes | Yarn - Package Manager
A package build failed. This problem typically doesn't come from Yarn itself, and simply means that a package described as having build directives...
Read more >
Yarn and Angular CLI commands - IBM
Creates a production build of the application and copies the output to the dist directory. This command should be used before pushing customization...
Read more >
Next.js build is failing - Render community
Error : Could not find a production build in the '/opt/render/project/src/.next' directory. Try building your app with 'next build' before ...
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