-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Error when requiring mapbox-gl-js in Node #8442
Comments
Older nodes will still have a problem: #4593 |
It sure would be nice to see some testing for Nodejs 12 soon ;) |
I don't believe this is a Node issue, as far as I can tell, this libary doesn't work in Node at all. The error above is because the library is executing on import and trying to access browser specific APIs. I.e., this code should not do any execution. The library has side effects, meaning it is executing and trying to access browser specific APIs.
See #4593 (comment) |
Originally posted by @lf1991 in #8424 (comment)
Hi @lf1991, I started a new thread for your issue (I don't think you were having an issue with benchmarks on Firefox). You are using
nodejs 12.x
with the newestmapbox-gl-js
correct? If you are usingmapbox-gl
and having an issue this might not be the correct project.I can tell you that
mapbox-gl-js
(this project) doesn't supportnodejs
higher than10.x
, so if you try withnodejs
8
or10
that may solve your issue.The text was updated successfully, but these errors were encountered: