victory icon indicating copy to clipboard operation
victory copied to clipboard

Webpack warns about not finding source map files

Open danielberndt opened this issue 2 years ago • 4 comments

When updating to victory v36.5.1, webpack issues a lot of warnings (159 in my case) with these contents:

WARNING in ../node_modules/victory/es/index.js
Module Warning (from ../node_modules/react-scripts/node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '[...]/node_modules/victory/es/index.js.map' file: Error: ENOENT: no such file or directory, open '[...]/node_modules/victory/es/index.js.map'

I'm using create react app 5.0.1 for my app. I.e. it's based on webpack 5.73.0

This was likely introduced with #2307

danielberndt avatar Jul 01 '22 11:07 danielberndt

I have the same issue on a fresh React (18.2) install with Victory v36.5.3. Downgrading didn't fix it either (tried v36.0). Also seems to brick React's hot-reloading.

marlonschlosshauer avatar Jul 03 '22 18:07 marlonschlosshauer

Same issue here on Victory v36.5.2

siulca avatar Jul 07 '22 12:07 siulca

Same issue here on Victory v36.5.3

miriyas avatar Jul 13 '22 17:07 miriyas

Chee7ah avatar Jul 15 '22 08:07 Chee7ah

Any update to this bug or workaround?

gbspr avatar Aug 18 '22 20:08 gbspr

I am currently investigating, and working on a fix. Thank you for reporting!

scottrippey avatar Aug 18 '22 22:08 scottrippey

Fixed in 36.6.3, thanks for reporting!

scottrippey avatar Aug 19 '22 02:08 scottrippey