create-solana-dapp
create-solana-dapp copied to clipboard
Missing Framework Options When Running npx create-solana-dapp
Description:
When I run npx create-solana-dapp, I am only presented with a single template option with no-Anchor.
I am not seeing Anchor Basic Example or Anchor Counter Example with any of the templates.
Steps to Reproduce:
- Run
npx create-solana-dapp - Enter a project name
- Select any framework
Expected Behavior: I expected to see templates with Anchor.
Actual Behavior: Only one template appears with no Anchor support.
Environment:
- Tool version:
[email protected] - OS: (Windows & macOS)
Screenshot:
Please let me know if I’m missing something or if this is a known issue.
Having the same issue with your version (4.2.8)
Running it one version down solved it for me: npx [email protected]
@kshitijofficial @notdevkey sorry for the confusion, the anchor templates are currently under the legacy section. Note, these still use @solana/web3.js and the old wallet adapter.
I'm working on adding the other Anchor templates.
@beeman I'm new to this, currently going through the Solana Developer Bootcamp 2024 on their YouTube and they're using create-solana-dapp in all their examples.
What does the upgrade mean for me? Is there a new toolset for developing with anchor?
@beeman I'm new to this, currently going through the Solana Developer Bootcamp 2024 on their YouTube and they're using
create-solana-dappin all their examples. What does the upgrade mean for me? Is there a new toolset for developing with anchor?
In that case you should be able to do everything using the legacy templates.
A big reason for having those legacy templates there is because of the 2024 Bootcamp.
Sadly, we can't change the content of the video to reflect it (nor did we foresee this back when the bootcamp got created).
I'm open to any suggestions on making it easier for new devs like yourself on how to guide you to the right spot. 🙌
Having the same issue with your version (
4.2.8) Running it one version down solved it for me:npx [email protected]
doesn't work now The template directory is empty. Please check the repository: gh:solana-developers/solana-templates/templates/legacy-next-tailwind-counter folder deleted yesterday
Having the same issue with your version (
4.2.8) Running it one version down solved it for me:npx [email protected]doesn't work now The template directory is empty. Please check the repository: gh:solana-developers/solana-templates/templates/legacy-next-tailwind-counter folder deleted yesterday
You need to make sure you are using latest version. Downgrading as suggested will not work.
@kshitijofficial @rwnalds @jingyuan1223 If you're following the bootcamp examples, you can use the legacy templates to stay 100% compatible.
For example, you can scaffold your project like this:
npx create-solana-dapp project_name --template legacy-next-tailwind-counter
Anyone Still facing this issue use legacy templates when choosing the framework
This is now fixed, more details here: https://github.com/solana-developers/create-solana-dapp/issues/134#issuecomment-2981582098