vercel / next-plugins

Official Next.js plugins
MIT License
2.68k stars 319 forks source link

Source maps resolved wrongly @zeit/next-source-maps #678

Closed Joozty closed 3 years ago

Joozty commented 3 years ago

I have a route like /test/[id].jsx and when I import css module in that file it source map is resolved relative to that part, i.e. /test/sourcemap.css.map

sourcemaps

Steps to reproduce:

  1. Clone this repo
  2. Run npm ci, npm run build, npm run start
  3. Open in your browser localhost:3000/test/1
  4. Open the dev console and see the same warning as attached image.

Thanks a lot for looking into it.

kachkaev commented 3 years ago

That package is probably no longer supported. Try removing it and add experimentalproductionBrowserSourceMaps in your next.config.js instead.

Joozty commented 3 years ago

Alrighty then. Thanks for your help 🙂