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
Issue within React Create App #485
Comments
Are you using gulp? Searching on the error in google shows several of the first results being related to gulp: |
Thanks for a fast response. Unfortunately I am not using Gulp. |
Do you have a sample project I can take a look at to reproduce the issue? |
I have put a bare bones crate react app with the github demo in the App.js here: https://github.com/Darren-Ivey/React-GitHubApi-Test |
My best guess is an incompatibility with webpack. Unfortunately there isn't currently a fix. |
Ok, fair enough. Thank you for looking into the issue, it's much appreciated. |
@Darren-Ivey I made a few changes recently that should help with browserify compatibility. Could you give it another try by chance? Also the next milestone is browser compatibility, if you are interested in progress I recommend to subscribe to this issue: #620 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It should work with latest I working towards further browser improvements, like test setups and reduced bundle size. See https://github.com/octokit/rest.js/issues/620#issuecomment-362715478 |
@gr2m Looks like the Octokit npm package isn't compiled to ES5, which
|
Could you please create a follow up issue on that? I try to avoid a build step right now, but plan to use the ES Modules syntax in future for better tree shaking / smaller bundle size, so that should fix it for good. But before that it would be great if you could have a look what syntax is breaking right now, if it's not too much we can just make the change directly |
Looks like that line uses an arrow function--I doubt it's worthwhile to manually convert ES6 syntax to ES5. I can work around this by forking and building to ES5 in the short term. link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { I'll create a separate issue to track the issue. |
I have added this package to a React Create App, but get the following error (as well as a several warning):
"Uncaught TypeError: Invalid Version: semver.js:293 "
I updated both my npm and node, but the issue persisted. Is this a common issue and is there a solution?
Thanks in advance.
The text was updated successfully, but these errors were encountered: