You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm probably doing something obviously wrong here, but whenever react-mapbox-gl is installed I can't run any tests with babel-node. If my test command is:
I get the following error when browserify tries to parse the dist. Is there a way to prevent this error or at least have babel-node ignore the module?
/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/mapbox-gl.js:225
"use strict";module.exports=self;
^
ReferenceError: self is not defined
at Object.112 (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/js/util/browser/window.js:4:18)
at s (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1)
at /Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1
at Object.110../window (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/js/util/browser.js:8:16)
at s (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1)
at /Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1
at Object.24.../package.json (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/js/mapbox-gl.js:3:17)
at s (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1)
at e (/Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1)
at /Users/andy/code/rescape_ramble/node_modules/mapbox-gl/dist/node_modules/browser-pack/_prelude.js:1:1
The text was updated successfully, but these errors were encountered:
I'm probably doing something obviously wrong here, but whenever react-mapbox-gl is installed I can't run any tests with babel-node. If my test command is:
I get the following error when browserify tries to parse the dist. Is there a way to prevent this error or at least have babel-node ignore the module?
The text was updated successfully, but these errors were encountered: