webpack / webpack-sources

Source code handling classes for webpack
MIT License
261 stars 71 forks source link

UnhandledPromiseRejectionWarning: Error: "." is not in the SourceMap (reproducible) #89

Closed dlong500 closed 4 years ago

dlong500 commented 4 years ago

@evilebottnawi Ok, I've finally created a reproducible test repo (as requested in #55). I forked HashemKhalifa/webpack-react-boilerplate and the ONLY things I changed were:

Here is the repo: https://github.com/dlong500/webpack-react-boilerplate/tree/source-map-diag The changes are in the source-map-diag branch.

Building the project via yarn run build (or npm) yields the following: source-map-diag

alexander-akait commented 4 years ago

Just note, please migrate from optimize-css-assets-webpack-plugin to https://github.com/webpack-contrib/css-minimizer-webpack-plugin

alexander-akait commented 4 years ago

Maybe someone generates a bad source map, looks bug, big thanks!

rob-baker-ar commented 4 years ago

If it's any help, this repo (from https://github.com/webpack/webpack/issues/11517) is a more minimal way of reproducing the bug:

https://github.com/rob-baker-ar/webpack-issue

chaffeqa commented 4 years ago

oh wow thanks @rob-baker-ar ! i jsut created a reproducible version myself:

https://github.com/chaffeqa/webpack-5-sourcemaps-repro

mine has both class and enum versions of the bug