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

Error when using plug controller #250

Open
rainboy93 opened this issue Apr 16, 2024 · 0 comments
Open

Error when using plug controller #250

rainboy93 opened this issue Apr 16, 2024 · 0 comments

Comments

@rainboy93
Copy link

rainboy93 commented Apr 16, 2024

When I call the function from PlugKeyRing. I got this error.

Deploying all canisters.
All canisters have already been created.
Building canisters...
Executing 'npx azle demo_backend'

Building canister demo_backend

💣 TypeScript error: Could not resolve "events"

node_modules/@psychedelic/cap-js/dist/kyasshu/index.js:7:25
6| 
7| const events_1 = require("events");
8|                          ^

💀 Build failed
Building frontend...
WARN: Generating type declarations for canister demo_frontend:
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_frontend/demo_frontend.did.d.ts
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_frontend/demo_frontend.did.js
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_frontend/demo_frontend.did
Generating type declarations for canister demo_backend:
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_backend/demo_backend.did.d.ts
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_backend/demo_backend.did.js
  /private/var/xcodeserver/Documents/developer_journey/demo/src/declarations/demo_backend/demo_backend.did

Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
  Failed to build all canisters.
    Failed while trying to build all canisters.
      The build step failed for canister 'br5f7-7uaaa-aaaaa-qaaca-cai' (demo_backend) with an embedded error: Failed to build custom canister demo_backend.: Failed to run npx azle demo_backend.: The custom tool failed.

There are several dependencies require like events, assert, crypto ...
Why does this happen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant