Get error when try to create abi
Command:
npx fuels typegen -i ../contracts/referal-contract/out/debug/*-abi.json -o ./src/contracts
Error:
(node:36653) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
node:internal/streams/writable:444
const state = stream._writableState;
^
TypeError: Cannot read properties of undefined (reading '_writableState')
at _write (node:internal/streams/writable:444:24)
at Writable.write (node:internal/streams/writable:494:10)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v21.1.0
Also tried to do with yarn
yarn exec v1.22.21
error: required option '-i, --inputs <path|glob...>' not specified
error Command failed.
Exit code: 1
Command: fuels
Arguments: typegen
Directory: /Users/lidia/spark/frontend
Output:
info Visit https://yarnpkg.com/en/docs/cli/exec for documentation about this command.