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

wp-now: Running a blueprint with no steps prop fails #320

Open
senadir opened this issue Jun 30, 2024 · 0 comments
Open

wp-now: Running a blueprint with no steps prop fails #320

senadir opened this issue Jun 30, 2024 · 0 comments

Comments

@senadir
Copy link

senadir commented Jun 30, 2024

on @wp-now/wp-now:0.1.72, running something like this blueprint would fail

{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/wp-admin/post-new.php",
  "preferredVersions": {
    "php": "latest",
    "wp": "latest"
  },
  "phpExtensionBundles": ["kitchen-sink"],
  "plugins": ["gutenberg", "woocommerce"],
  "features": {
    "networking": true
  },
  "login": true
}

Error:

TypeError: blueprintObject.steps is not iterable
    at extractSiteUrlFromBlueprint (MY_FOLDER/node_modules/@wp-now/wp-now/main.js:566:38)
    at getWpNowConfig (MY_FOLDER/node_modules/@wp-now/wp-now/main.js:554:21)
    at async Object.handler (MY_FOLDER/node_modules/@wp-now/wp-now/main.js:1098:25)

You can fix it by adding an empty "steps": [] prop to the blueprint.

@senadir senadir changed the title Running a blueprint with no steps prop fails wp-now: Running a blueprint with no steps prop fails Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant