aeternity / aepp-sdk-js

JavaScript SDK for the æternity blockchain
http://docs.aeternity.com/aepp-sdk-js/
ISC License
120 stars 59 forks source link

Unable to build v13.0.0 #1789

Closed subhod-i closed 1 year ago

subhod-i commented 1 year ago

To Reproduce Steps to reproduce the behavior:

  1. git clone https://github.com/aeternity/aepp-sdk-js.git
  2. npm i

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:

davidyuk commented 1 year ago

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.