React Webpack deployment failed: ENOENT: no such file or directory, open

So I tried to deploy a react app by building it with webpack.Building went well as it as it would locally.However, after a while I received this error “Build exceeded maximum allowed runtime” and the error attached.
"Error: ENOENT: no such file or directory, open '/opt/build/repo/index.html’ which actually exists
Deploy log

I have encountered this on all my builds and hence I have been unable to deploy.

Here is the link to the log: ENOENT: no such file or directory, open ‘/opt/build/repo/index.html’:
My previous failed build log, another site:
Build run time exceeded
Could it be something to do with webpack config? loader? or netlify?
Kindly advise…

hi there, can you read through this and try what luke suggested?

hey Perry, alright…looking into it…will revert

hey, alright…looking into it…will revert

let us know how it works out :+1:

Hey Perry, It still could work… Link after deleting package dot json lock… I am thinking it could be a webpack loader or something…In the meantime let me try dragging my dist folder to netlify

were you able to deploy via drag n drop? I am definitely seeing some inconsistencies in your build log - i think this might have something to do with your webpack config.

Is the entry point supposed to be index.html? your log seems to suggest that it is but i’m not sure if that is maybe incorrect.