solana-developers/create-solana-dapp

Invalid init script for NextJS + Tailwind + no Anchor

Closed this issue · 3 comments

■  Error: Invalid init script: [
│    {
│      "code": "invalid_type",
│      "expected": "array",
│      "received": "undefined",
│      "path": [
│        "instructions"
│      ],
│      "message": "Required"
│    }
│  ]
▲  Something went wrong

Looks like it did install everything just threw an error at the end

Thanks for reporting this issue, I will fix it.

This has been fixed in version 4.0.1.

$ pnpx create-solana-dapp
┌  create-solana-dapp 4.0.1
│
◇  Enter project name
│  fixed-error
│
◇  Select a framework
│  Next.js
│
◇  Select a template
│  next-tailwind
│
◇  Cloned template to /private/tmp/solana-local/fixed-error
│
◇  Installed via pnpm
│
◇  Repository does not have an init script
│
◇  Initialized git repo
│
◇  Installation successful! ───────────────────────────╮
│                                                      │
│  That's it!                                          │
│                                                      │
│  Change to your new directory and start developing:  │
│                                                      │
│  cd ./fixed-error                                    │
│                                                      │
│  Start the app:                                      │
│                                                      │
│  pnpm run dev                                        │
│                                                      │
├──────────────────────────────────────────────────────╯
│
└  Good luck with your project!

To test it, please run one of the following commands:

# pnpm based project
pnpx create-solana-dapp
# npm based project
npx create-solana-dapp

To be sure you're on this version, and avoid any local caches, you can add the version using this syntax:

# pnpm based project
pnpx create-solana-dapp@4.0.1
# npm based project
npx create-solana-dapp@4.0.1