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

fetch is not defined #6

Open
isaac-art opened this issue Jun 20, 2023 · 2 comments
Open

fetch is not defined #6

isaac-art opened this issue Jun 20, 2023 · 2 comments

Comments

@isaac-art
Copy link

When attempting to run cli on macos (arm64)

steps:
$ chmod +x cli-macos-arm64
$ ./cli-macos-arm64

returns:

pkg/prelude/bootstrap.js:1876
      throw error;
      ^

ReferenceError: fetch is not defined
    at Object.<anonymous> (/snapshot/argent-starknet-recover/dist/fetchPolyfill.js:16:23)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at Module.require (pkg/prelude/bootstrap.js:1855:31)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/snapshot/argent-starknet-recover/dist/index.js:17:1)
    at Module._compile (pkg/prelude/bootstrap.js:1930:22)
@ceejeey
Copy link

ceejeey commented Aug 7, 2023

Facing same issue

@UIZorrot
Copy link

UIZorrot commented Mar 1, 2024

you may use a lower version of nodejs like 18 to fix this issue

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

No branches or pull requests

3 participants