Skip to content
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

update to map gl-0.27 #2

Closed
toabey opened this issue Nov 23, 2016 · 0 comments
Closed

update to map gl-0.27 #2

toabey opened this issue Nov 23, 2016 · 0 comments

Comments

@toabey
Copy link
Owner

toabey commented Nov 23, 2016

"visgl#112"
UPD: I got this fixed. It turned out I did not have Flow transpiler in my babel config.
npm install babel-plugin-transform-flow-strip-types --save-dev
In .babelrc or "babel" section in package.json:
"plugins": [
"...other plugins...",
"transform-flow-strip-types"
],
If your webpack loader is configured to ignore stuff in node_modules (which is a good idea for build performance), amend this rule to make mapbox-gl/js an exception:
loaders: [{
test: /.js$/,
loader: 'babel',
// exclude: /node_modules/, // remove
exclude: /node_modules/(?!mapbox-gl/js)/, // add
}, {
// ...
If you've already had .flowconfig in your project's directory, make sure that node_modules is not excluded there.

@toabey toabey closed this as completed Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant