dfinity / sdk

IC SDK: a Software Development Kit for creating and managing canister smart contracts on the ICP blockchain.
https://internetcomputer.org/developers
Apache License 2.0
174 stars 83 forks source link

Can't generate frontend #3940

Open vporton opened 1 day ago

vporton commented 1 day ago

DFX can't build my project, because before every dfx deploy ..., it's automatically called dfx generate that leads to the error:

Error: Failed while trying to generate type declarations for 'bootstrapper_frontend'.
Caused by: Candid file: /home/porton/Projects/icp-package-manager/.dfx/local/canisters/bootstrapper_frontend/assetstorage.did doesn't exist.

But the way to create assetstorage.did is to run dfx generate ... that is, as I described above, is interrupted.

I also noticed, that scripts/prebuild was removed from the schema, so I can't neutralize the dangerous dfx generate command running.

vporton commented 1 day ago

Apparenty, dfx generate is called from npm run prebuild. What the hell, dfx (apparently) calls npm not the other way round?