Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NextJS Source Maps stopped working on Chrome 92

I did not change my package.json nor my next.config

 "scripts": {
    "dev": "NODE_OPTIONS='--inspect' next dev",
    ...
  }

But I now get react_devtools_backend.js:4049 in my console on Chrome instead of the file and line of my console.log.

On NextJS DOC it says

Source Maps are enabled by default during development.

I am currently on nextJS v11.0.0

Any idea what changes was made which broke the source map ?

It works fine on Firefox though.

like image 527
crg Avatar asked Sep 07 '25 05:09

crg


1 Answers

Answer given from @oleics

disabling react-dev-tools "fixes" this for me

like image 156
crg Avatar answered Sep 09 '25 20:09

crg