ixartz / Next-js-Boilerplate

🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Drizzle ORM + Husky + Lint-Staged + Vitest + Testing Library + Playwright + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS ✨
https://nextjs-boilerplate.com
MIT License
8.79k stars 1.69k forks source link

Error: Cannot find module './sw.js.json' #218

Closed consciouscoder closed 8 months ago

consciouscoder commented 8 months ago

Any idea how to fix this error? I just cloned the repo and got this in the console repeatedly

⨯ Error: Cannot find module './sw.js.json' at /Users/dladendorf/workspace/web3/fivestarscard/.next/server/app/[locale]/(auth)/(center)/sign-up/[[...sign-up]]/page.js:34:12 at async eval (./src/libs/i18n.ts:17:20) at async Module.generateMetadata$1 (page.tsx:28:15)

ixartz commented 8 months ago

It's the first time I'm seeing the error. Could you share with me more context about the error? What command did you run? What OS and what node version you are using?

consciouscoder commented 8 months ago

Error seems to be gone now, once I setup Clerk auth. I believe it may be related to not having the Clerk keys in the .env files.

ixartz commented 8 months ago

It's very strange, not having the Clerk keys shouldn't generate the error.

The boilerplate should still work even the Clerk key is not defined.

ixartz commented 8 months ago

Could you remove the Clerk key and see if the problems is still here?