-
-
Notifications
You must be signed in to change notification settings - Fork 27k
index.html missing from build #9601
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
Comments
Mmmm it seems index.html is not the only thing that is missing. Also the bundle files are not generated. |
Ok I found the culprit. However, I still think the build should actually fail instead of just not generating any output. |
Error from chokidar (C:): Error: EBUSY: resource busy or locked, lstat 'C:\hiberfil.sys' |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue. |
I have updated react-* from 16.x.x to 17.1.0 and rebuild the project. |
I had the same issue with the webpack import syntax for |
@iota-pi |
Yes, the production build is successfully built when using this workaround. |
@crklan |
If using docker, it is also important to make sure you aren't pulling in a previously bad build that was cached. |
Just leaving this here, take care that your Node version is not too old. I was experiencing this problem with a project developed with the latest node version but then I saw the Node version I was trying to build with was v16 from the distro's package manager. If you use |
Describe the bug
After running the build, the index.html is missing from the /build folder.
Did you try recovering your dependencies?
Yes I did.
I followed these steps:
Steps to reproduce
Run
npm run build
, then check whether index.html was generated successfully.Expected behavior
It builds all project files, including index.html
Actual behavior
index.html is missing
Reproducible demo
Sorry I cannot provide this. Initially, run build worked as expected but it broke. I have not ejected and did not change anything about the build scripting afaik.
Related issue
Production Build Randomly Fails #1082
This issue describes exactly what I am seeing but was closed and locked.
EDIT: Ok, maybe not exactly. The OP of that issues says it works sometimes, but for me it is consistently failing now.
The text was updated successfully, but these errors were encountered: