-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Cannot find module 'gl' #121
Comments
plus when i try to npm install gl manually, it just hangs on |
I've also looked into these posts, but they all don't seem to have a firmed conclusion on this issue: mapbox/mapbox-gl-js#828 initially, I thought it's something to do with |
so I managed to install gl in my node_modules, the run time error is gone, but the browser will return error on validating react-map-gl styles it seems, |
Having the same hell here trying get 'gl' installed, ready to give up. Did you do anything special to get it installed? Relevant webpack config:-
|
Closing in favor of #112. |
I spent a day on this issue and still couldn't figure out why, i had a small react-webpack thing running react-map-gl, which works fine, my webpack config is like this:
However when I try to configure in this react boilerplate with pretty much the same settings, it keeps on throw me that error on the run time: Error: Cannot find module 'gl'. And the webpack setting is something like this:
And the boilerplate i am based on is this one: https://github.com/ufocoder/redux-universal-boilerplate
I am not very good with webpack, i suspect there is something obvious I am missing here.
The file I am updating is:
common.config.js
, which was merged with both server and client config to produce a final webpack configure for this particular boilerplateAny help could be much appreciated!
The text was updated successfully, but these errors were encountered: