Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sourcemap warnings on latest create react app #7

Open
tom-churchill opened this issue Oct 30, 2023 · 2 comments
Open

Sourcemap warnings on latest create react app #7

tom-churchill opened this issue Oct 30, 2023 · 2 comments

Comments

@tom-churchill
Copy link

tom-churchill commented Oct 30, 2023

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.

@evanshortiss
Copy link
Owner

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants