-
Notifications
You must be signed in to change notification settings - Fork 606
Closed
Labels
Description
mapbox-gl-js version: 1.8.1
mapbox-gl-draw version: master
Steps to Trigger Behavior
- Clone this repo and run
yarn && yarn build-min - Try to import
dist/mapbox-gl-draw.jsin a project
Expected Behavior
It should work, without depending on fs.
Actual Behavior
I can't use it because it depends on fs. That is, I'm getting:
ERROR in ./node_modules/@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.js
Module not found: Error: Can't resolve 'fs' in '/home/trygve/dev/my-project/front/node_modules/@mapbox/mapbox-gl-draw/dist'
If I try to do the same after checking out v1.1.2 it works fine.
andrewharvey, Andi-Lo, geoyogesh, giladgray, gbuckingham89 and 10 moreadriaandotcom