Creating a production build (yarn dist) fails
See original GitHub issueGetting 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)
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)
- Checkout develop
yarn
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:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.