Skip to content

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

@leonachan1

Description

@leonachan1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions