Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add devDependencies #198

Open
tbigueres opened this issue May 6, 2024 · 1 comment · May be fixed by #199
Open

Need to add devDependencies #198

tbigueres opened this issue May 6, 2024 · 1 comment · May be fixed by #199

Comments

@tbigueres
Copy link

Hello,

I've just tried to launch npm run build after npm install and I had the following error :

[email protected] lint
eslint src/

node:internal/modules/esm/resolve:844
throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@medplum/bot-layer' imported from /Users/name/Documents/workspace/medplum-demo-bots/esbuild-script.mjs
at packageResolve (node:internal/modules/esm/resolve:844:9)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1131:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:390:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:359:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_MODULE_NOT_FOUND'

I've managed to fix it by adding the @medplum/bot-layer to the devDependencies

image

@sahinf
Copy link

sahinf commented Jun 16, 2024

PRed fix #199

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants