-
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
import of npm-installed mapbox-gl in Meteor 1.4 fails #3503
Comments
Including Please open a new ticket if you need any specific features to get |
Not sure how to reply to that. AFAIK any published npm package should load in Meteor w/o special requirements, and so should mapboxgl. If the package fails loading there's a problem in the package. Unfortunately I haven't figured out how to fix it myself. I'm hoping to get some help w/that |
@igalitarian There are two problems here. The first is the install time — it will be fixed in the next release. See #3374. The second is the way you import import mapboxgl from 'mapbox-gl/dist/mapbox-gl.js'; |
|
@igalitarian fair point. I opened #3551 to discuss this. |
Hote to reproduce
install meteor according to meteor.com
run:
$ meteor create testMapboxGL
$ cd testMapboxGL
run:
$ meteor npm i --save mapbox-gl
Note: this takes about five minutes to complete (why? other packages take a few seconds)
4. Edit
client/main.js
and add the line (at the top):import mapboxgl from 'mapbox-gl';
Note that at this point, trying to install the packages which seems to be missing using:
meteor npm i <apparent missing packages>
will result in a few packages which install correctly but then the install fails with:
npm ERR! Failed at the canvas@1.6.2 install script 'node-gyp rebuild'.
Expected behavior
The expected behavior would be that after the initial
npm install mapbox-gl
there would be no server side errors and that on the client side, the import ofmapboxgl
will result in a valid and ready to usemapboxgl
object handleThe text was updated successfully, but these errors were encountered: