-
Notifications
You must be signed in to change notification settings - Fork 599
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
V1.2.0, with ES6 module change can no longer use require? #997
Comments
This is actually a bigger problem when adding maps within a project like Next.js:
|
@ericclemmons thank you for your feedback, would you be able to open a separate issue expanding on the details of the problem you are seeing? For example, some additional context on your use case, whether the same |
Any news on this? |
This is still an issue and does not work with nextjs |
@nrgapple Currently, this library doesn't work on Server side rendering.
which you can call the constructor like this and don't forget to config the
|
Similar to @doliolarzz, I converted my map component to a dynamic import instead of testing for the |
mapbox-gl-js version: 1.11.0
mapbox-gl-draw version: 1.2.0
Steps to Trigger Behavior
MapboxDraw = require("@mapbox/mapbox-gl-draw");
import MapboxDraw from "@mapbox/mapbox-gl-draw";
Documentation in Readme.md page needs updating, or is this some other issue?
The text was updated successfully, but these errors were encountered: