Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Consider cross-fetch #680

Closed
gaboesquivel opened this issue Feb 6, 2020 · 2 comments
Closed

Consider cross-fetch #680

gaboesquivel opened this issue Feb 6, 2020 · 2 comments
Assignees

Comments

@gaboesquivel
Copy link

latest 'node-fetch' throws type errors consider https://www.npmjs.com/package/cross-fetch

import fetch from 'cross-fetch'
import { JsonRpc } from 'eosjs'

// Instantiate a new JsonRpc object, with the Network Api Uri, and a request object
const rpc = new JsonRpc('https://api.kylin.alohaeos.com', { fetch })
@gaboesquivel
Copy link
Author

hmm I'm still getting the same error with 'cross-fetch', it went away briefly but it was an IDE thing

Screen Shot 2020-02-06 at 12 25 12 PM

@jlamarr22
Copy link
Contributor

Thank you for finding this!

The fix for this has been merged and is available in the latest version of edge and will be available in V21 once it is released.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants