When you create a NextJS Frontend project, pnpm fuels typegen -i ./abis/*-abi.json -o ./types
to be more specificpnpm fuels typegen
doesn’t work and leads to the following Error:
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL not found: xxx
When you create a NextJS Frontend project, pnpm fuels typegen -i ./abis/*-abi.json -o ./types
to be more specificpnpm fuels typegen
doesn’t work and leads to the following Error:
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL not found: xxx
Current solution is when creating NextJS or git cloning Nextjs template perform the following:
pnpm install
pnpm build
Instead of:
npm install
// Ensure that forc is v0.64
And afterwards the following command should be working for generating types:
pnpm fuels typegen -i ./abis/*-abi.json -o ./types
LASTLY PLEASE PLEASE PLEASE:
Check your Package.json, if you clone a old template, ensure that you use update the package.json too!
Best Practice: Edit from the current template: pnpm create fuels
Hey @eesheng
Out of curiosity, what command did you use to create-fuels
?
It appeares that my packages were outdated, hence updating them fix the issues. Thanks!
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.