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
If this plugin is added to a project via npm the project had to also respect
ES6 syntax by using a compiler like Babel. This is expecting too much.
Other notable changes:
- Use envify inline with the npm test command
- Use xtend module over Object.assign. Closes#10
Hey,
I'm importing mapbox-gl-geocoder from npm and using it with browserify. I get the following error:
Unknown plugin "object-assign" while parsing file: .../node_modules/mapbox-gl-geocoder/index.js
Any clue ?
EDIT :
Got it to work with https://www.npmjs.com/package/babel-plugin-object-assign since I'm using babelify, but I found another error:
geocoder.js:6 Uncaught ReferenceError: mapboxgl is not defined
which is this line :export default class Geocoder extends mapboxgl.Control {
My code is the following
The text was updated successfully, but these errors were encountered: