ReferenceError: fetch is not defined
joemccann opened this issue · 2 comments
joemccann commented
Attempting to run this via CLI and I get this: ReferenceError: fetch is not defined
.
I see that you closed an issue similar to this but did the package not get updated? I'm having to patch it now with:
'use strict'
/* global fetch */
global.fetch = require('isomorphic-fetch')
const baseUrl = 'https://min-api.cryptocompare.com/data/'
But that will break any builds that don't include my node_modules
directory. Am I missing something?
RyanZim commented
This is clearly noted in the readme: https://github.com/ExodusMovement/cryptocompare#usage. The reason is that this module was created for use in the browser or electron, though it works just fine in Node with fetch defined.
joemccann commented
Thanks
On Sat, Feb 3, 2018 at 19:32 Ryan Zimmerman ***@***.***> wrote:
Closed #17 <#17>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC8aokS4a8tSMoZ9i07dAK4P923rUeTks5tRSTKgaJpZM4R4bL9>
.
--
Sent from Joe In Real Life