create-solana-dapp icon indicating copy to clipboard operation
create-solana-dapp copied to clipboard

Missing Framework Options When Running npx create-solana-dapp

Open kshitijofficial opened this issue 7 months ago • 8 comments

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:

  1. Run npx create-solana-dapp
  2. Enter a project name
  3. Select any framework

Expected Behavior: I expected to see templates with Anchor.

Actual Behavior: Only one template appears with no Anchor support.

Environment:

Screenshot:

Image

Please let me know if I’m missing something or if this is a known issue.

kshitijofficial avatar Apr 21 '25 12:04 kshitijofficial

Having the same issue with your version (4.2.8) Running it one version down solved it for me: npx [email protected]

rwnalds avatar Apr 21 '25 12:04 rwnalds

@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 avatar Apr 21 '25 13:04 beeman

@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?

rwnalds avatar Apr 21 '25 14:04 rwnalds

@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?

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. 🙌

beeman avatar Apr 21 '25 14:04 beeman

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

jingyuan1223 avatar Apr 22 '25 11:04 jingyuan1223

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.

beeman avatar Apr 22 '25 11:04 beeman

@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

Image

Sumanta1998 avatar Apr 27 '25 14:04 Sumanta1998

Anyone Still facing this issue use legacy templates when choosing the framework

Image

Devansh-Aage avatar Apr 27 '25 15:04 Devansh-Aage

This is now fixed, more details here: https://github.com/solana-developers/create-solana-dapp/issues/134#issuecomment-2981582098

beeman avatar Jun 17 '25 19:06 beeman