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

Object assign error #10

Closed
LoicUV opened this issue Dec 21, 2015 · 0 comments
Closed

Object assign error #10

LoicUV opened this issue Dec 21, 2015 · 0 comments

Comments

@LoicUV
Copy link

LoicUV commented Dec 21, 2015

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

import mapboxgl             from 'mapbox-gl'; // 0.12.1
import Geocoder             from 'mapbox-gl-geocoder';
tristen added a commit that referenced this issue Jan 13, 2016
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
tristen added a commit that referenced this issue Jan 14, 2016
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