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

Issue when using mapbox-gl-draw-circle with Angular 9 #31

Open
karimkun opened this issue Jan 12, 2021 · 4 comments
Open

Issue when using mapbox-gl-draw-circle with Angular 9 #31

karimkun opened this issue Jan 12, 2021 · 4 comments

Comments

@karimkun
Copy link

Hi,

When using the package with angular 9, it doesn't work, I have this error :

ERROR in ./node_modules/jsonlint-lines/lib/jsonlint.js
Module not found: Error: Can't resolve 'fs' in 'C:\Workspace\COVAL-web\node_modules\jsonlint-lines\lib'

Any help please?

@lbrutti
Copy link

lbrutti commented Jan 27, 2021

Hello,
try adding this entry in package.json

"browser": {
     "fs": false,
     "os": false,
     "path": false
 },

At topmost level.

For me it worked ;)

@Yuki-Zhao
Copy link

i

Hello,
try adding this entry in package.json

"browser": {
     "fs": false,
     "os": false,
     "path": false
 },

At topmost level.

For me it worked ;)

it doesn't work

@Yuki-Zhao
Copy link

Is there another way ?

@Yuki-Zhao
Copy link

add node in webpack.config.js
image

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

3 participants