Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid blueprint: must have required property 'pluginZipFile' #361

Closed
evrpress opened this issue Nov 21, 2024 · 3 comments
Closed
Labels

Comments

@evrpress
Copy link

evrpress commented Nov 21, 2024

I try to run a local blueprint with this command:

npx @wp-now/wp-now start --blueprint=blueprint.json --reset

and get the error

Error: Invalid blueprint: must have required property 'pluginZipFile' at /steps/1

Here's my blueprint:

{
    "siteOptions": {
        "blogname": "My first Blueprint"
    },
    "steps": [
        {
            "step": "installTheme",
            "themeData": {
                "resource": "wordpress.org/themes",
                "slug": "adventurer"
            }
        },
        {
            "step": "installPlugin",
            "pluginData": {
                "resource": "wordpress.org/plugins",
                "slug": "hello-dolly"
            }
        }
    ]
}

Playground link

Switching the pluginData property to the deprecated pluginZipFile will work, but it breaks my blueprint on the playground.

@zaerl
Copy link
Collaborator

zaerl commented Dec 3, 2024

Hi @evrpress, thanks for this. I can confirm. I checked, and I can see wp-now is loading wp-playground/blueprints 1.0.2. Upgrading to 1.0.14 will probably automatically fix this. Now the required elements are ["pluginData", "step"].

cc. @adamziel

@adamziel
Copy link
Collaborator

@evrpress you may have more luck with @wp-playground/cli. @wp-now is not actively maintained and upgrading the Playground libraries is a real challenge. I'd love to merge it into @wp-playground/cli and only maintain a single too. To do that, we'd need to port the context detection logic (as in – are we in a plugin directory? Or a theme directory? Or wp-content? etc.) into @wp-playground/cli

@adamziel
Copy link
Collaborator

I've created a new issue to track that here: WordPress/wordpress-playground#2100

@adamziel adamziel closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Playground Board Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants