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 + Husky + Lint-Staged + Jest + Testing Library + Cypress + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS

Home Page:https://nextjs-boilerplate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

consciouscoder opened this issue · comments

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)

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?

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.

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.

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