Skip to content

Built file in master requires fs #970

Description

@trygveaa

mapbox-gl-js version: 1.8.1
mapbox-gl-draw version: master

Steps to Trigger Behavior

  1. Clone this repo and run yarn && yarn build-min
  2. Try to import dist/mapbox-gl-draw.js in 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions