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
@vc102375 Oh, that's bad. URL class was added in v6.13.0. The easiest way for you is switching to Node.js v8 since v6 will be EOL in less than a month.
#57
@vc102375 Oh, that's bad. URL class was added in v6.13.0. The easiest way for you is switching to Node.js v8 since v6 will be EOL in less than a month.
As a quick workaround, you can add this to the very beginning of the your application:
Make sure you npm install semver to make it work. This code creates a global window object with window.URL that will make gaxios think it's running in browser mode, so it will use this instead of the URL class that will appear in v6.13.0. Thanks for semver check, it will keep working even after you upgrade Node.js. Please try that and let me know if it helped.
@vc102375 Oh, that's bad.
URL
class was added in v6.13.0. The easiest way for you is switching to Node.js v8 since v6 will be EOL in less than a month.As a quick workaround, you can add this to the very beginning of the your application:
Make sure you
npm install semver
to make it work. This code creates a globalwindow
object withwindow.URL
that will make gaxios think it's running in browser mode, so it will use this instead of the URL class that will appear in v6.13.0. Thanks forsemver
check, it will keep working even after you upgrade Node.js. Please try that and let me know if it helped.Originally posted by @alexander-fenster in #44 (comment)
The text was updated successfully, but these errors were encountered: