Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.33k stars 942 forks source link

Source map error #2721

Open loescornelis opened 1 month ago

loescornelis commented 1 month ago

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?

VadimCiv commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

@smallsaucepan

displayed in dev mode, IDK if affecting the functionality

smallsaucepan commented 2 weeks ago

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 commented 2 weeks ago

@smallsaucepan

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