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

BadResource: Bad resource ID during deno run npm:xxxxxx #27994

Open
YuniqueUnic opened this issue Feb 6, 2025 · 0 comments
Open

BadResource: Bad resource ID during deno run npm:xxxxxx #27994

YuniqueUnic opened this issue Feb 6, 2025 · 0 comments

Comments

@YuniqueUnic
Copy link

Version: Deno 2.1.9

I tried to init project by cmd deno run --allow-all npm:create-solana-dapp@latest, it always failed by a same Error: BadResource: Bad resource ID.

Reproduce steps:

deno run --allow-all npm:create-solana-dapp@latest
> deno run --allow-all npm:create-solana-dapp@latest
┌  create-solana-dapp 4.1.2
│
◇  Enter project name
│  abc
│
◇  Select a framework
│  Next.js
│
◇  Select a template
│  next-tailwind-counter
│
◇  Cloned template to /home/unic/projs/sol/anchor/abc
│
◇  Installed via npm
│
◇  Executed init script!
│
◇  Initialized git repo
└  BadResource: Bad resource ID 
# Something wrong here...

Expected Result:

> npx create-solana-dapp@latest            
Need to install the following packages:
[email protected]
Ok to proceed? (y) y

┌  create-solana-dapp 4.1.2
│
◇  Enter project name
│  abc
│
◇  Select a framework
│  Next.js
│
◇  Select a template
│  next-tailwind-counter
│
◇  Cloned template to /home/unic/projs/sol/anchor/abc
│
◇  Installed via npm
│
◇  Executed init script!
│
◇  Initialized git repo
│
◇  Installation successful! ───────────────────────────╮
│                                                      │
│  That's it!                                          │
│                                                      │
│  Change to your new directory and start developing:  │
│                                                      │
│  cd ./abc                                            │
│                                                      │
│  Start the app:                                      │
│                                                      │
│  npm run dev                                         │
│                                                      │
│  Run Anchor commands:                                │
│                                                      │
│  npm run anchor build | test | localnet | deploy     │
│                                                      │
├──────────────────────────────────────────────────────╯

└  Good luck with your project!

Snapshot:

BadResourceID

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