bradtraversy / mern-tutorial

Goalsetter application from Youtube series

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error on Heroku deployment (Module not Found)

umerarif01 opened this issue · comments

Whenever I push my app to Heroku, the terminal give me this error:

Creating an optimized production build...
remote:        Failed to compile.

` Module not found: Error: Can't resolve './pages/Dashboard' in '/tmp/build_3fe5f3dd/frontend/src'`

My App is working absolutely fine in development and it also builds the app perfectly when I run the npm run build command

Please help!!!