You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
; wp-now php ./vendor/bin/phpunit
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:399:5)
at validateString (node:internal/validators:163:11)
at Object.join (node:path:1176:7)
at runWordPressMode (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:556:58)
at async runWordPressDevelopMode (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:542:3)
at async file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:492:9
at async applyToInstances (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:437:5)
at async startWPNow (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:486:3)
at async executePHPFile (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:773:51)
at async Object.handler (file:///Users/cloudnik/.npm/_npx/48f1587babebd1f4/node_modules/@wp-now/wp-now/main.js:890:9) {
code: 'ERR_INVALID_ARG_TYPE'
}
It seems like it tries to run WordPress mode when I only expected to run a PHP file. cc @danielbachhuber
The text was updated successfully, but these errors were encountered:
FixesWordPress/wordpress-playground#438
## What?
Removes the magic WordPress loading for the `wp-now php` command.
## Why?
It's not particularly intuitive that you get WordPress when you run
`wp-now php`. It's more intuitive that WordPress will load if you run
WP-CLI, so let's keep the behavior for that feature
(https://github.com/WordPress/wordpress-playground/issues/269).
## Testing Instructions
Tests should pass.
In wordpress-develop directory:
It seems like it tries to run WordPress mode when I only expected to run a PHP file. cc @danielbachhuber
The text was updated successfully, but these errors were encountered: