Search code examples
reactjsgoogle-chromenext.jsdevtoolssource-maps

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.


Solution

  • Answer given from @oleics

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