mapbox-gl-draw-circle icon indicating copy to clipboard operation
mapbox-gl-draw-circle copied to clipboard

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

Open karimkun opened this issue 4 years ago • 4 comments

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?

karimkun avatar Jan 12 '21 17:01 karimkun

Hello, try adding this entry in package.json

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

At topmost level.

For me it worked ;)

lbrutti avatar Jan 27 '21 21:01 lbrutti

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 avatar Mar 10 '21 09:03 Yuki-Zhao

Is there another way ?

Yuki-Zhao avatar Mar 10 '21 09:03 Yuki-Zhao

add node in webpack.config.js image

Yuki-Zhao avatar Mar 15 '21 03:03 Yuki-Zhao