mickasmt / next-saas-stripe-starter

Open-source SaaS Starter with User Roles & Admin Panel. Built using Next.js 14, Prisma, Neon, Auth.js v5, Resend, React Email, Shadcn/ui, Stripe, Server Actions.
https://next-saas-stripe-starter.vercel.app
MIT License
1.95k stars 354 forks source link

ERR_MODULE_NOT_FOUND when trying to build or start the development server #28

Closed pwnllc closed 6 months ago

pwnllc commented 6 months ago

Hello, When I try to run pnpm run dev I get the error bellow:

> saas-starter@0.1.0 dev C:\Users\Enej G\Desktop\next-saas-stripe-starter-main
> next dev

  ▲ Next.js 14.2.3
  - Local:        http://localhost:3000
  - Environments: .env.local

 ✓ Starting...
 ✓ Ready in 3.1s
Error: Cannot find package 'C:\Users\Enej G\Desktop\next-saas-stripe-starter-main\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.15.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.7_vdk46njk7gfv6xrwv77e3vblhq\node_modules\@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\Enej G\Desktop\next-saas-stripe-starter-main\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.15.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.7_vdk46njk7gfv6xrwv77e3vblhq\node_modules\@effect-ts\otel-exporter-trace-otlp-grpc\_mjs\index.mjs
Did you mean to import "@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js"?
    at legacyMainResolve (node:internal/modules/esm/resolve:215:26)
    at packageResolve (node:internal/modules/esm/resolve:841:14)
    at moduleResolve (node:internal/modules/esm/resolve:927:18)
    at defaultResolve (node:internal/modules/esm/resolve:1157: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.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}
Error: Cannot find package 'C:\Users\Enej G\Desktop\next-saas-stripe-starter-main\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.15.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.7_vdk46njk7gfv6xrwv77e3vblhq\node_modules\@opentelemetry\exporter-trace-otlp-grpc\package.json' imported from C:\Users\Enej G\Desktop\next-saas-stripe-starter-main\node_modules\.pnpm\@effect-ts+otel-exporter-trace-otlp-grpc@0.15.1_@effect-ts+core@0.60.5_@opentelemetry+api@1.7_vdk46njk7gfv6xrwv77e3vblhq\node_modules\@effect-ts\otel-exporter-trace-otlp-grpc\_mjs\index.mjs
Did you mean to import "@opentelemetry/exporter-trace-otlp-grpc/build/src/index.js"?
    at legacyMainResolve (node:internal/modules/esm/resolve:215:26)
    at packageResolve (node:internal/modules/esm/resolve:841:14)
    at moduleResolve (node:internal/modules/esm/resolve:927:18)
    at defaultResolve (node:internal/modules/esm/resolve:1157: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.<anonymous> (node:internal/modules/esm/module_job:87:39)
    at link (node:internal/modules/esm/module_job:86:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

I am using Windows 11 btw

mickasmt commented 6 months ago

Hi @pwnguide, I think you encountered the same error as this one. Let me know if it works.

pwnllc commented 6 months ago

Hi @pwnguide, I think you encountered the same error as this one. Let me know if it works.

Yeah it works, thank you!