Skip to content

Cannot find module  #28

Description

@twocoins-ca

1156 git clone https://github.com/patrick-fs/reactshoppe-api.git
1158 cd reactshoppe-api/
1160 npx lerna bootstrap
1164 npx npm install
1165 npx cdk synth

Any tip for fixing this. Thanks in advance.

Error: Cannot find module '/home/ec2-user/samples/lerna/workspaces/reactshoppe-api/packages/stack/node_modules/reactshoppe-database/reactshoppe-database.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:363:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:576:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:941:27)
at Function.Module._load (node:internal/modules/cjs/loader:803:27)
at Module.require (node:internal/modules/cjs/loader:1021:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object. (/home/ec2-user/samples/lerna/workspaces/reactshoppe-api/packages/stack/reactshoppe-api-stack.ts:2:1)
at Module._compile (node:internal/modules/cjs/loader:1119:14)
at Module.m._compile (/home/ec2-user/samples/lerna/workspaces/reactshoppe-api/node_modules/ts-node/src/index.ts:858:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
Subprocess exited with error 1

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions