Closed subhod-i closed 1 year ago
To Reproduce Steps to reproduce the behavior:
Error message
> @aeternity/aepp-sdk@13.0.0 build:types > tsc && node tooling/downlevel/run.mjs Generating types for typescript@4.2 Generating types for typescript@4.5 > @aeternity/aepp-sdk@13.0.0 build:es > babel src --config-file ./babel.esm.config.js --out-dir es --extensions .js,.ts --out-file-extension .mjs --source-maps true Successfully compiled 107 files with Babel (1087ms). > @aeternity/aepp-sdk@13.0.0 build:assets > node tooling/fetch-aesophia-cli.mjs Fetching aesophia_cli file:///Users/subhod-work/workspace/temp/aepp-sdk-js/tooling/fetch-aesophia-cli.mjs:18 const request = await fetch( ^ ReferenceError: fetch is not defined at .../aepp-sdk-js/tooling/fetch-aesophia-cli.mjs:18:19
Please tell us about your environment:
The builded sdk requires node@14 and above, but to build sdk node@18 is required (the latest LTS version, https://nodejs.dev/). In fetch-aesophia-cli.mjs I'm using fetch API that is available only in node@18.
fetch-aesophia-cli.mjs
fetch
To Reproduce Steps to reproduce the behavior:
Error message
Please tell us about your environment: