#Call to undefined function Inertia\Commands\pcntl_async_signals()

1 messages · Page 1 of 1 (latest)

short yarrow
#

I am trying to run the php artisan inertia:start-ssr command to start my ssr server. In return I am getting an error of

   Error

  Call to undefined function Inertia\Commands\pcntl_async_signals()

  at C:\Users\fredr.DESKTOP-DTV2HJ8\Documents\Code\website\fortnitestatstracker.xyz-v2\vendor\inertiajs\inertia-laravel\src\Commands\StartSsr.php:62
     58▕
     59▕         $stop = function () use ($process) {
     60▕             $process->stop();
     61▕         };
  ➜  62▕         pcntl_async_signals(true);
     63▕         pcntl_signal(SIGINT, $stop);
     64▕         pcntl_signal(SIGQUIT, $stop);
     65▕         pcntl_signal(SIGTERM, $stop);
     66▕
hoary locust
short yarrow
#

But the pcntl extension is not supported on non-Unix platforms?

hoary locust
#

Correct, the command won't work on non-unix platforms

short yarrow
#

Shouldn't that be said in the docs?

hoary locust
#

Yeah, I guess. It was added as a very recent last addition before releasing 1.0

short yarrow
#

Ah I see, thanks for the help anyways!

hoary locust
#

Personally I don't understand the artisan commands either. You can just run the node process

short yarrow