-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
mapboxgl-style-spec (v13.0.1): import broken "Can't resolve 'fs' in browser #6984
Comments
Guys I just tried with @mapbox/mapbox-gl-style-spec@13.1.0 Problem still exists! Maybe you should consider reopening this issue...
|
The fix wasn't included in 13.1.0. It will be in the next release. |
I see. I'll wait for it. Thanks for your prompt reply :) |
I am still getting this error even though I am using 13.1.1-beta.1 and I can see the require('fs') in the dist/index.js file. Has the dist file been updated with the change? |
Sorry about that @nicholas-l – I just published |
Excellent! thanks for the quite turn around 👍 |
I think latest mapboxgl-style-spec is broken for importing into browser. I use it really a lot for creating GeoJSON feature filters dynamically also outside mapboxgl.
Module:
mapboxgl-style-spec
Version: 13.0.1 (latest npm available package)
Issue: import broken "Can't resolve 'fs'
Platform: browser
Demonstration: https://stackblitz.com/edit/js-kqrbqj
Latest working version I tried was 11.1.1
The text was updated successfully, but these errors were encountered: