Skip to content
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

Works in development but 'npm run build' silently fails to add index.html and JS bundles to build folder #105

Closed
titocosta opened this issue Jul 7, 2020 · 2 comments

Comments

@titocosta
Copy link

Everything works well when running npm start in development.

npm run build runs with no error messages, but build folder doesn't contain index.html file or any .js bundle.
I tried deleting the build folder, only static images get added.

Not sure how to provide any further error message to help resolve.

@titocosta
Copy link
Author

titocosta commented Jul 7, 2020

After addressing the silent failure of npm run build by changing the build.js script as described in this create-react-app issue, it appears the underlying error is that I am using importScripts in my webworker and I get a importScripts is not defined error.

@titocosta
Copy link
Author

Shortcut I used is to just add /* eslint-disable */ at the top of the web worker .js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant