vercel / next-plugins

Official Next.js plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Joozty opened this issue · comments

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.

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

Alrighty then. Thanks for your help 🙂