vector2d icon indicating copy to clipboard operation
vector2d copied to clipboard

Sourcemap warnings on latest create react app

Open tom-churchill opened this issue 2 years ago • 2 comments

I recently updated to the latest version of Create React App and I now get warnings when running my code.

WARNING in ./node_modules/vector2d/src/AbstractVector.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/<redacted>/node_modules/vector2d/src/AbstractVector.ts' file: Error: ENOENT: no such file or directory, open '/<redacted>/node_modules/vector2d/src/AbstractVector.ts'

It sounds like there might be a problem with how the source maps are being generated. I imagine some newer version of something or other has got stricter which is what is causing the warnings now.

tom-churchill avatar Oct 30 '23 01:10 tom-churchill

I'll look into this via #8. I think maybe bumping some dependencies to modern versions might resolve it. There's a subtle difference in config maps when I bump TypeScript to the latest version.

evanshortiss avatar Nov 08 '23 22:11 evanshortiss

@tom-churchill can you test with npm i [email protected] -S. It should be fixed.

evanshortiss avatar Nov 22 '23 05:11 evanshortiss