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

Error when running "pnpm dev" #280

Open
rendiichtiarp opened this issue Mar 11, 2024 · 4 comments
Open

Error when running "pnpm dev" #280

rendiichtiarp opened this issue Mar 11, 2024 · 4 comments

Comments

@rendiichtiarp
Copy link

`> taxonomy@0.2.0 dev C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy

concurrently "contentlayer dev" "next dev"

[0] Error: Cannot find package 'C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs
[0] Did you mean to import @opentelemetry+exporter-trace-otlp-grpc@0.31.0_@opentelemetry+api@1.1.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js?
[0] at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
[0] at packageResolve (node:internal/modules/esm/resolve:840:14)
[0] at moduleResolve (node:internal/modules/esm/resolve:910:20)
[0] at defaultResolve (node:internal/modules/esm/resolve:1130:11)
[0] at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
[0] at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
[0] at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
[0] at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
[0] at link (node:internal/modules/esm/module_job:84:36) {
[0] code: 'ERR_MODULE_NOT_FOUND'
[0] }
[1] ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[1] info - Loaded env from C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy.env.local
[1] error - Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
[1] Error: Cannot find package 'C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs
[1] Did you mean to import @opentelemetry+exporter-trace-otlp-grpc@0.31.0_@opentelemetry+api@1.1.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js?
[1] at legacyMainResolve (node:internal/modules/esm/resolve:214:26)
[1] at packageResolve (node:internal/modules/esm/resolve:840:14)
[1] at moduleResolve (node:internal/modules/esm/resolve:910:20)
[1] at defaultResolve (node:internal/modules/esm/resolve:1130:11)
[1] at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
[1] at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
[1] at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
[1] at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
[1] at link (node:internal/modules/esm/module_job:84:36) {
[1] type: 'Error',
[1] code: 'ERR_MODULE_NOT_FOUND'
[1] }
[1] next dev exited with code 1
[0] contentlayer dev exited with code 0
 ELIFECYCLE  Command failed with exit code 1.`

@madhavdutta
Copy link

Add ^ symbol to install the latest version of the next and others, it will fix the issue.

Example :
"contentlayer": "^0.3.1",
"date-fns": "^2.29.3",
"lucide-react": "^0.92.0",
"next": "^13.3.2-canary.13",

@KibiDabi
Copy link

I added ^ only to next cause I already had ^ in others, but I am getting the same error again,

[0] Error: Cannot find package 'C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs
[0] Did you mean to import @opentelemetry+exporter-trace-otlp-grpc@0.31.0_@opentelemetry+api@1.1.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js?
[0] at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
[0] at packageResolve (node:internal/modules/esm/resolve:769:14)
[0] at moduleResolve (node:internal/modules/esm/resolve:831:20)
[0] at defaultResolve (node:internal/modules/esm/resolve:1036:11)
[0] at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
[0] at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
[0] at ModuleWrap. (node:internal/modules/esm/module_job:76:33)
[0] at link (node:internal/modules/esm/module_job:75:36) {
[0] code: 'ERR_MODULE_NOT_FOUND'
[0] }
[1] ready - started server on 0.0.0.0:3000, url: http://localhost:3000
[1] info - Loaded env from C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy.env.local
[1] error - Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
[1] Error: Cannot find package 'C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@effect-ts+otel-exporter-trace-otlp-grpc@0.14.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.1_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs
[1] Did you mean to import @opentelemetry+exporter-trace-otlp-grpc@0.31.0_@opentelemetry+api@1.1.0/node_modules/@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js?
[1] at legacyMainResolve (node:internal/modules/esm/resolve:188:26)
[1] at packageResolve (node:internal/modules/esm/resolve:769:14)
[1] at moduleResolve (node:internal/modules/esm/resolve:831:20)
[1] at defaultResolve (node:internal/modules/esm/resolve:1036:11)
[1] at DefaultModuleLoader.resolve (node:internal/modules/esm/loader:251:12)
[1] at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:140:32)
[1] at ModuleWrap. (node:internal/modules/esm/module_job:76:33)
[1] at link (node:internal/modules/esm/module_job:75:36) {
[1] type: 'Error',
[1] code: 'ERR_MODULE_NOT_FOUND'
[1] }
[1] next dev exited with code 1
[0] contentlayer dev exited with code 0
 ELIFECYCLE  Command failed with exit code 1.

Any solution?

@naymurdev
Copy link

check this answer

@KibiDabi
Copy link

@naymurdev A big thank you man! The problem has been fixed now. Shout-out to you man!!

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

No branches or pull requests

4 participants