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

compile failed after installing mapbox-gl-draw-circle Module not found: Error: Can't resolve 'fs' #40

Open
tiankai0426 opened this issue Jun 11, 2021 · 2 comments

Comments

@tiankai0426
Copy link

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
@tiankai0426 tiankai0426 changed the title compile failed after installing mapbox-gl-draw-circle compile failed after installing mapbox-gl-draw-circle Module not found: Error: Can't resolve 'fs' Jun 11, 2021
@tiankai0426
Copy link
Author

mapbox-gl-draw fixed this error at 1.2.0 but mapbox-gl-draw-circle depend 1.1.1

@dusanjovanov
Copy link

If anyone still has this problem, here's the solution: webpack-contrib/css-loader#447 (comment)

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