Skip to content

script error in kit-node-solanax402 community template #327

@Nitish-bot

Description

@Nitish-bot

I tried to run create-solana-dapp with the kit-node-solanax402 template and it thew an error at me.

pnpm create solana-dapp --template kit-node-solanax402
┌  create-solana-dapp 4.8.2
│
◇  Enter project name
│  tryout
│
◆  Template: x402 protocol implementation for Solana with Facilitator and Server apps using TypeScript and @solana/kit
│
◇  Cloned template to /home/nitishc/progmag/tryout
│
◇  Installed via pnpm
│
│
■  Error running setup script: Error: Invalid package.json: [
│    {
│      "code": "invalid_type",
│      "expected": "array",
│      "received": "string",
│      "path": [
│        "create-solana-dapp",
│        "instructions"
│      ],
│      "message": "Expected array, received string"
│    },
│    {
│      "code": "invalid_type",
│      "expected": "object",
│      "received": "string",
│      "path": [
│        "create-solana-dapp",
│        "rename",
│        "x402-solana-protocol"
│      ],
│      "message": "Expected object, received string"
│    }
│  ]
└  Error: Error running setup script: Error: Invalid package.json: [
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "string",
    "path": [
      "create-solana-dapp",
      "instructions"
    ],
    "message": "Expected array, received string"
  },
  {
    "code": "invalid_type",
    "expected": "object",
    "received": "string",
    "path": [
      "create-solana-dapp",
      "rename",
      "x402-solana-protocol"
    ],
    "message": "Expected object, received string"
  }
]

■  Canceled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions