sdk icon indicating copy to clipboard operation
sdk copied to clipboard

dfx generate missing type declarations

Open letmejustputthishere opened this issue 2 years ago • 1 comments

I tried the following:

  1. run dfx generate in a virgin project after running dfx deploy

I expected to see this happen: the command should output all files generated

Instead, this happened: the command only outputs the generation of the following files

❯ dfx generate
Building canisters before generate for Motoko
Shrink WASM module size.
Generating type declarations for canister my_test_frontend:
  src/declarations/my_test_frontend/my_test_frontend.did.d.ts
  src/declarations/my_test_frontend/my_test_frontend.did.js
  src/declarations/my_test_frontend/my_test_frontend.did
Generating type declarations for canister my_test_backend:
  src/declarations/my_test_backend/my_test_backend.did.d.ts
  src/declarations/my_test_backend/my_test_backend.did.js
  src/declarations/my_test_backend/my_test_backend.did

but those files are present after runnning dfx generate

❯ ls src/declarations/my_test_backend
index.d.ts               my_test_backend.did      my_test_backend.did.js
index.js                 my_test_backend.did.d.ts

Meta

dfx --version:

<version>
Further log output

<log output>

letmejustputthishere avatar Dec 05 '22 12:12 letmejustputthishere

Thanks for reporting! Will be tracked internally as SDK-886

sesi200 avatar Dec 05 '22 12:12 sesi200