DEV Community

Discussion on: Using Create-React-App with Express

Collapse
 
tanobi92 profile image
Ta No Bi

Hi @Lou, when i deploy to server, it had an error: Error: ENOENT: no such file or directory, stat '/home/namld/projects/raca/build/index.html'. How to fix it?

Collapse
 
zawadzkip profile image
Patrick Zawadzki

make sure you run npm run build before, otherwise you will not have a build directory

Collapse
 
loujaybee profile image
Lou (🚀 Open Up The Cloud ☁️)

Patrick's suggestion sounds correct, let me know if you had any other issues.