inertiajs / inertia-laravel

The Laravel adapter for Inertia.js.
https://inertiajs.com
MIT License
1.99k stars 222 forks source link

Running inertia:start-ssr continuosly fails with message 'Node.js v18.19.0' #637

Closed admench closed 4 weeks ago

admench commented 1 month ago

Using the following stack

Laravel 11.4.0 inertiajs/inertia-laravel: 1.2.0

@inertia/vue3 1.1.0 vue 3.4.27

I cannot run the inertia:start-ssr command. (FYI I'm doing this on Forge using the built in toggle to turn inertia ssr on).

This exception is thrown continuously as a result of the Daemon retrying.

scratch_17.json

  "class": "Inertia\\Ssr\\SsrException",
  "file": "\/home\/forge\/mysite.com\/vendor\/inertiajs\/inertia-laravel\/src\/Commands\/StartSsr.php",
  "line": 84,
  "message": "\nNode.js v18.19.0\n",
  "context": null,
craigrileyuk commented 4 weeks ago

Do you have access to a shell for your server?

If so, what happens if you run node bootstrap/ssr/ssr.js (or wherever your SSR entry file compiles to) directly rather than through the PHP command?

driesvints commented 4 weeks ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!