scale-it / algo-builder

Framework to automate development of Algorand Assets and Smart Contracts.
https://algobuilder.dev
Apache License 2.0
133 stars 42 forks source link

Invalid value "" for config.networks.testnet.token - Expected a value of type string (with length > 10). #867

Closed dimitardanailov closed 1 year ago

dimitardanailov commented 1 year ago

I've been working on new project. I've an issue to build the project.

The package.json file is:

{
  "name": "sample-project",
  "version": "0.0.1",
  "main": "index.js",
  "license": "MIT",
  "devDependencies": {
    "chai": "^4.3.6",
    "mocha": "^9.1.3"
  },
  "scripts": {
    "algob": "algob"
  },
  "dependencies": {
    "@algo-builder/algob": "^3.2.0",
    "@algo-builder/web": "^3.2.0",
    "algosdk": "^1.13.1"
  },
  "packageManager": "yarn@3.1.1"
}

If I run the following command is:

npm run algob

The error is:

$ algob
Error ABLDR8: There's one or more errors in your config file:

  * Invalid value "" for config.networks.testnet.token - Expected a value of type string (with length > 10).
  * Invalid value "" for config.networks.mainnet.token - Expected a value of type string (with length > 10).

To learn more about algob's configuration, please go to https://github.com/scale-it/algo-builder

For more info run algob with --show-stack-traces or add --help to display task-specific help.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

nodejs version is 14

robert-zaremba commented 1 year ago
  1. You need to run algob init . first. See Quick Start
  2. I think nodejs v14 is not supported by us.
dimitardanailov commented 1 year ago

Greetings,

Thank you very much for the answer. I'd like to ask you: What's the minimum nodejs supported by the package ?