I run npm run dev
after creating a Next.js 15.0.1
project, and I got the following error:
./node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js?filePath=
Module parse failed: Bad character escape sequence (11:62)
const fileSizeInMB = buffer.byteLength / 1024 / 1024
if (fileSizeInMB > 8) {
throw new Error('File size for Open Graph image "\app\favicon.ico" exceeds 8MB. ' + |
(Current: ${fileSizeInMB.toFixed(2)}MB) |
+
I created the project using this command npx create-next-app@latest
, and I selected Typescript
, Eslint
, Tailwindcss
, and App router
. I picked the default answer for the rest of the questions. I am using node v20.10.0
on Windows 10
.
I checked the size of the favicon
, and it's 25kb.
Having the same issue.
Using turbopack by running npx next dev --turbo
fixed it for me temporarily.