Skip to content

Cannot find module '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/src/index.js' - Solution #7

Open

Description

@FatexJS

If you get this problem

docker123-server-1 | Error: Cannot find module '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/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.

Activity

  1. yangjiang3973 commented on Dec 20, 2023

    @yangjiang3973

    I mounted my local 'src' folder to overwrite
    volumes:
    - ./src:/usr/src/app
    - /usr/src/app/node_modules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions