-
Notifications
You must be signed in to change notification settings - Fork 889
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
Can't build react-leaflet locally #375
Comments
@tusbar tagging you here since (looking through this repos history) it looks like you switched the build to use |
Could be your version of node, please use node 8 |
Yeah, the syntax error is definitely due to the node version. Though it is fixable: #376. |
Random thought: what could be nice is to have the UMD bundles be available as release downloads (automatically added by the CI), so we don’t have to let the users build their own UMD builds (and we can get rid of node 6 ;)) I’ve done something like that in the past: https://github.com/armateam/extension/releases, generated by https://github.com/armateam/extension/blob/master/circle.yml#L40-L42. |
Hey! Whoops I feel silly. The output I got did warn me that I should use the latest version of Node, and somehow in my mind I thought that they latest of v6 would do. Whoops! @tusbar I implemented the changes from #376 and that 100% worked for me. :) Didn't need to upgrade my version of node! :) 👍 to having that integrated in the codebase - super easy change to open up builds for a larger userbase! (though of course just upgrading to v8 is super easy too, especially with |
* Remove comma that causes a syntax error in node 6 Fix #375 * Add node 6 back to travis
Hi. I'm trying to integrate a slightly modified version of
react-leaflet
into an app I'm building, but ran into a hitch when I was unable build from source. I cloned this repository and tried to build that, but I get the same error - so it is not due to my modifications.Expected behavior
After cloning this repository and running
npm install
, I expectnpm run build
to generate usable files in/dist
.Actual behavior
npm run build
works up until thebuild:umd
bit. The specific error I get is:Steps to reproduce
git clone https://github.com/PaulLeCam/react-leaflet.git
to get a clean copy of this directory.npm install
to install all the dependencies.npm run build
<-- error happens herePerhaps you could just jump to
npm run build:umd
without having the rest of the scripts innpm run build
run... I don't know enough about what everything is doing though to know whether that is indeed the case.I've attached the
npm-debug.log
to this post in case that's useful (as a zip file cuz github won't let me upload it as a logfile).npm-debug.log.zip
The text was updated successfully, but these errors were encountered: