blefnk / relivator-nextjs-saas-ecommerce-starter

✨ 1.3.0 RC — Coming soon ⭐ Next.js 15 eCommerce Template ▲ i18n Stripe Shadcn Tailwind Drizzle Zod tRPC TypeScript Clerk Radix UI, Responsive React 18 19 Server Components, Postgres Neon TS ORM, Intl App Router Docs User Actions Kit, SaaS Commerce eCommerce Shop Pricing Payments Dark Mode Full Stack Free ⭐ more stars 👉 more features
https://relivator.com/en-US
MIT License
1.04k stars 209 forks source link

bug: new installation "invalid value used as weak map key" #44

Closed alexandrosk closed 2 months ago

alexandrosk commented 2 months ago

Provide environment information

Compiled /[locale] in 6.1s
 ⨯ TypeError: Invalid value used as weak map key
    at WeakMap.set (<anonymous>)
    at /Users/x/sites/medusaplugins/.next/server/chunks/ssr/node_modules__pnpm_a3aa90._.js:3580:22
digest: "1312523809"

and then

GET /en-US 500 in 508ms

Unable to find `next-intl` locale because the middleware didn't run on this request. See https://next-intl-docs.vercel.app/docs/routing/middleware#unable-to-find-locale. The `notFound()` function will be called as a result.

Describe the bug

Installed everything correctly, next.js starts fine at localhost:3000 but then I get this

Link to reproduction

localhost

To reproduce

Clean installation latest git files

Additional information

No response

Thanks a lot for the boilerplate, Ill keep debugging from my side, hope it's not something on my system Id feel bad :D

alexandrosk commented 2 months ago

Fixed the invalud value used as weak map key by doing pnpm install next@latest next-intl@latest

project runs now, i still get this but I can fix Unable to findnext-intllocale because the middleware didn't run on this request.