taxonomy icon indicating copy to clipboard operation
taxonomy copied to clipboard

Error when running "pnpm dev"

Open rendiichtiarp opened this issue 1 year ago • 4 comments

`> [email protected] 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@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs [0] Did you mean to import @[email protected]_@[email protected]/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@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\rendiichtiar\Documents\Dokumen Pribadi\Project Website\taxonomy\node_modules.pnpm@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs [1] Did you mean to import @[email protected]_@[email protected]/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.`

rendiichtiarp avatar Mar 11 '24 04:03 rendiichtiarp

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",

madhavdutta avatar Apr 04 '24 21:04 madhavdutta

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@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs [0] Did you mean to import @[email protected]_@[email protected]/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@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\sljevar\My\React_Projects\Cloned_Projects\taxonomy\node_modules.pnpm@[email protected]_@[email protected]_@[email protected]_5qiaqvz2dty7ujax4z3hmc2i4m\node_modules@effect-ts\otel-exporter-trace-otlp-grpc_mjs\index.mjs [1] Did you mean to import @[email protected]_@[email protected]/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?

KibiDabi avatar May 25 '24 12:05 KibiDabi