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

Source map error #2721

Open
loescornelis opened this issue Sep 24, 2024 · 5 comments · May be fixed by Turfjs/turf-jsts#2
Open

Source map error #2721

loescornelis opened this issue Sep 24, 2024 · 5 comments · May be fixed by Turfjs/turf-jsts#2
Labels
bundling Anything related to issues with bundling

Comments

@loescornelis
Copy link

After updating to version 7.1.0 (From 6.5.0) we get the following error:

WARNING in ../../node_modules/@turf/jsts/dist/jsts.min.js
Module Warning (from ../../node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/node_modules/@turf/jsts/dist/jsts.min.js.map' file: Error: ENOENT: no such file or directory, open '//node_modules/@turf/jsts/dist/jsts.min.js.map'

Could the sourcemaps be included?

@smallsaucepan smallsaucepan added the bundling Anything related to issues with bundling label Oct 12, 2024
@VadimCiv
Copy link

Same here: Turf 7.1.0 with React 18.
Has anyone fixed this issue?

[REACT] WARNING in ./node_modules/@turf/jsts/dist/jsts.min.js
[REACT] Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
[REACT] Failed to parse source map from './node_modules/@turf/jsts/dist/jsts.min.js.map' file: Error: ENOENT: no such file or directory, open './node_modules/@turf/jsts/dist/jsts.min.js.map'

@smallsaucepan
Copy link
Member

Hi @loescornelis and @VadimCiv. Is this just a warning displayed in dev mode? Or is it affecting the functionality of your app?

I ask because I don't believe @turf/jsts ever included a map file.

@VadimCiv
Copy link

@smallsaucepan

displayed in dev mode, IDK if affecting the functionality

@smallsaucepan
Copy link
Member

Ok thanks. Will wait to see if @loescornelis is having a different experience. If it isn't affecting functionality though, it will be pretty low priority.

It's possible the warning has always been there and source-map-loader has only recently started noticing it.

@loescornelis
Copy link
Author

@smallsaucepan

As far as I can tell it's not affecting functionality. We've managed to hide the warning for now 👍

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

Successfully merging a pull request may close this issue.

3 participants