Trying to generate types from contract with version fuels@0.66.1 installed
Input :
npx fuels typegen -i ../contract/out/debug/*-abi.json -o ./src/contracts
Output:
(node:57236) [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:446
const state = stream._writableState;
^
TypeError: Cannot read properties of undefined (reading '_writableState')
at _write (node:internal/streams/writable:446:24)
at Writable.write (node:internal/streams/writable:502:10)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Node.js v21.6.1
With version fuels@0.69.0 installed ,
Output:
error: no ABI found at '../contract/out/debug/*-abi.json'
My fuelup show output
Default host: x86_64-unknown-linux-gnu
fuelup home: /root/.fuelup
installed toolchains
--------------------
beta-4-x86_64-unknown-linux-gnu (default)
latest-x86_64-unknown-linux-gnu
active toolchain
----------------
beta-4-x86_64-unknown-linux-gnu (default)
forc : 0.46.1
- forc-client
- forc-deploy : 0.46.1
- forc-run : 0.46.1
- forc-crypto : not found
- forc-doc : 0.46.1
- forc-explore : 0.28.1
- forc-fmt : 0.46.1
- forc-lsp : 0.46.1
- forc-tx : 0.46.1
- forc-wallet : 0.3.0
fuel-core : 0.20.5
fuel-core-keygen : Error getting version string
fuels versions
--------------
forc : 0.45
forc-wallet : 0.45
```Default host: x86_64-unknown-linux-gnu
fuelup home: /root/.fuelup
installed toolchains
--------------------
beta-4-x86_64-unknown-linux-gnu (default)
latest-x86_64-unknown-linux-gnu
active toolchain
----------------
beta-4-x86_64-unknown-linux-gnu (default)
forc : 0.46.1
- forc-client
- forc-deploy : 0.46.1
- forc-run : 0.46.1
- forc-crypto : not found
- forc-doc : 0.46.1
- forc-explore : 0.28.1
- forc-fmt : 0.46.1
- forc-lsp : 0.46.1
- forc-tx : 0.46.1
- forc-wallet : 0.3.0
fuel-core : 0.20.5
fuel-core-keygen : Error getting version string
fuels versions
--------------
forc : 0.45
forc-wallet : 0.45