Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't generate frontend #3940

Open
vporton opened this issue Oct 6, 2024 · 1 comment
Open

Can't generate frontend #3940

vporton opened this issue Oct 6, 2024 · 1 comment
Labels
needs-triage This ticket needs investigation.

Comments

@vporton
Copy link
Contributor

vporton commented Oct 6, 2024

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 vporton added the needs-triage This ticket needs investigation. label Oct 6, 2024
@vporton
Copy link
Contributor Author

vporton commented Oct 7, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This ticket needs investigation.
Projects
None yet
Development

No branches or pull requests

1 participant