davidnguyen11 / nextjs-full-demo

Demo about integration between examples of next.js and also fix some issues during development
77 stars 15 forks source link

Cannot find module 'next\dist\lib\error.js' #2

Open leonachan1 opened 6 years ago

leonachan1 commented 6 years ago

I have tried to deploy this code into heroku. Of course, I have added Procfile and .env file. And, I have set the server port in server.js file.

By the way, I can see error - "Internal server error".

In console, there are following errors:

Error: Cannot find module 'next\dist\lib\error.js' Error: Cannot find module 'next\node_modules\babel-runtime/core-js/object/get-prototype-of'

How should I fix this problem ? Thanks

leonachan1 commented 6 years ago

I could run this code at my localhost. But, in heroku, I couldn't do so.

Who can help me ... ?