payload icon indicating copy to clipboard operation
payload copied to clipboard

Creating a plugin from the template fails

Open robotex82 opened this issue 2 months ago • 2 comments

Describe the Bug

When following the documentation at https://payloadcms.com/docs/plugins/build-your-own and trying to create a new plugin from the template with the given command npx create-payload-app@latest -t plugin -n my-new-plugin the command fails with:

❯ npx create-payload-app@latest -t plugin -n multi-tenancy


┌   create-payload-app 
│
◇   ────────────────────────────────────────────╮
│                                               │
│  Welcome to Payload. Let's create a project!  │
│                                               │
├───────────────────────────────────────────────╯
│
■  'plugin' is not a valid template.
│
◇  Valid templates: blank, website

The expected output would be a success with a created plugin folder structure.

Any ideas?

Thanks in advance!

Link to the code that reproduces this issue

Reproduction Steps

Execute npx create-payload-app@latest -t plugin -n multi-tenancy. See it fail with:

❯ npx create-payload-app@latest -t plugin -n multi-tenancy


┌   create-payload-app 
│
◇   ────────────────────────────────────────────╮
│                                               │
│  Welcome to Payload. Let's create a project!  │
│                                               │
├───────────────────────────────────────────────╯
│
■  'plugin' is not a valid template.
│
◇  Valid templates: blank, website

Which area(s) are affected? (Select all that apply)

area: docs, plugin: other, area: core

Environment Info

Node.js: v22.12.0

robotex82 avatar Dec 19 '24 15:12 robotex82