-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Importing with webpack and es6 #4368
Comments
Try If it's an angular cli project make sure you have imported the scripts and styles as well in the .angular-cli.json file |
Thank you for the reply! Tried that, and got the error at the bottom of this post. I have tried This is my
My errors:
|
Hi @aulneau , have you been able to solve this problem already? I'm running into the same issue here. |
@BernhardRode Unfortunately I have not been able to fix it! |
I managed to get it working correctly by changing the package.json of mapbox-gl-js inside of my node_modules folder. From Now I really hope the my patch will be accepted: |
Our official recommendation is to use |
is not working in my setup.. hopefully #4391 is going to be merged and the next release will make it work out of the box. |
Hi there!
I am running into trouble importing this into an angular project written in es6 and built with webpack.
I have tried my tricks at getting modules that might not be made to be imported into an es6 project, but they have not worked.
I have followed the documentation for importing with webpack and I am not sure what else to try!
The text was updated successfully, but these errors were encountered: