ARTICLE AD BOX
I've got a Next.js 16.0.6 app that I installed with npx create-next-app@latest my-app following the documentation from Next.js official website. It came with Typescript ^5.
Got this error message:
installHook.js:1 Server C:\Projects\first-next\node_modules\next\dist\client\lib\console.js: Invalid source map. Only conformant source maps can be used to find the original code. Cause: Error: sourceMapURL could not be parsed
The error message appeared in the browser and also in the dev console, where I ran npm run dev.
This happens if I have a console.log in my server component code.
I would like to know what is the origin of the error, and how to fix this?
It's my understanding that the browser environment and the server (Node.js) environment both support the console class\ object.
Node version 24.3.0
