Skip to content
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

fix: 'fetch is not defined' on node dev #266

Merged

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Jul 24, 2022

Issue:
Following error on node env in v3.17.0:
fetch is not defined

Solution:
We should use the fetch function of cross-fetch (i.e. import fetch from 'cross-fetch') instead of using the global fetch (on browsers window.fetch, on node this.fetch).

@netlify
Copy link

netlify bot commented Jul 24, 2022

Deploy Preview for starknetjs canceled.

Name Link
🔨 Latest commit 13c7b18
🔍 Latest deploy log https://app.netlify.com/sites/starknetjs/deploys/62dd12bb1e13e30009a4042e

@0xs34n 0xs34n merged commit baca6d9 into starknet-io:develop Jul 24, 2022
@github-actions
Copy link

🎉 This PR is included in version 3.18.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This PR is included in version 3.18.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants