DEV Community

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

Collapse
 
nburgess profile image
Nicolas Rousseau Burgess

At the time of writing, I believe that Heroku installed only the production dependencies by default, ignoring the development dependencies under devDependencies. npm install --only=dev had to be added for the project to build correctly. I think this default behavior has been changed so it may no longer be needed!