Can't create contract abi with fuels 0.67

Get error when try to create abi

npx fuels typegen -i ../contracts/referal-contract/out/debug/*-abi.json -o ./src/contracts


 (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)
  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

info Visit for documentation about this command.

Can you share your forc version as well please?

1 Like

sure, its forc 0.47.0

Also tried to build more simple contract and it worked. Doesn’t work for complex one, not sure where exactly

So, did the typegen error you reported happen when there was no *-abi.json on the disk?

Regarding the Sway complex contract that didn’t build:

  1. What forc version was this contract last compatible with?
  2. Can you share the contract itself?


Hi there @sway !

We understand that you are on stealth mode, please consider sharing your code via DM so we can reproduce the issue.


the solution was already implemented in 0.69.0 fuels version, thanks to Fuel team!