mapbox-gl-draw-circle
mapbox-gl-draw-circle copied to clipboard
compile failed after installing mapbox-gl-draw-circle Module not found: Error: Can't resolve 'fs'
Hi, I just add the packages and received error:
ERROR in ../../node_modules/jsonlint-lines/lib/jsonlint.js 692:17-43
Module not found: Error: Can't resolve 'fs' in 'D:\workspace\webapp\node_modules\jsonlint-lines\lib'
@ ../../node_modules/@mapbox/geojsonhint/lib/index.js 1:15-40
@ ../../node_modules/mapbox-gl-draw-circle/node_modules/@mapbox/mapbox-gl-draw/src/api.js 6:20-50
@ ../../node_modules/mapbox-gl-draw-circle/node_modules/@mapbox/mapbox-gl-draw/index.js 3:17-37
@ ../../node_modules/mapbox-gl-draw-circle/lib/modes/SimpleSelectModeOverride.js 1:19-52
@ ../../node_modules/mapbox-gl-draw-circle/index.js 4:32-79
@ ../../src-components/components/BasicMapProvider.tsx 17:0-79 196:21-31 197:21-35 198:23-33 @ ../../src-components/components/FeatureEditor.tsx 12:0-62 92:32-48 99:22-28
@ ./sentry/overview/index.tsx 3:0-79 70:37-57
@ ./sentry/overview/route.ts 2:0-30 7:13-21
@ ./sentry/route.ts 4:0-45 8:129-142
@ ./route.tsx 6:0-42 17:40-52
@ ./bootstrap.tsx 6:0-32 80:9-14
@ ./index.ts 2:0-40 3:0-9
mapbox-gl-draw fixed this error at 1.2.0 but mapbox-gl-draw-circle depend 1.1.1
If anyone still has this problem, here's the solution: https://github.com/webpack-contrib/css-loader/issues/447#issuecomment-285598881