DEV Community

Discussion on: Deploying a React app with React-Router and an Express Backend

Collapse
 
crownedlake profile image
SACHIN CHAND

Hi,

First of all thanks for the article, it is a great help.:D
I have done all the things you mentioned and I am facing 2 issues,
1) res.json() in List.js gives an error that '<' token is found i.e. syntax error but I didn't use the method just for sake to deploy on heroku.
2) I deployed on heroku succesfully but when I open my app on heroku I am shown "Not Found" error (most probably 404).

Can you help?

Collapse
 
gn profile image
GN

Be sure to remove the git folder (generated by Create React App) in the client directory. Doing so will allow Heroku to build your React app and fix the "Not Found" error.

Collapse
 
jfkinslow profile image
Joshua Kinslow

i have the same issue with deploying to heroku.

Collapse
 
davegrnr profile image
davegrnr

I'm running into the same problem now - did you ever happen to find a solution to this?