Skip to content

Cannot find module '/src/index.js' - Solution #7

@FatexJS

Description

@FatexJS

If you get this problem

docker123-server-1 | Error: Cannot find module '/src/index.js'

You can fix this in /Dockerfile and write the next:

WORKDIR /

.
.
.

# Run the application.
CMD node /src/index.js <-- varies depending on your folders.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions