Closed ycs77 closed 1 year ago
If call the php artisan inertia:start-ssr command on Windows, then get this error:
php artisan inertia:start-ssr
Error Call to undefined function Inertia\Commands\pcntl_async_signals() at D:\inertia-test\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▕ 1 D:\inertia-test\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:36 Inertia\Commands\StartSsr::handle() 2 D:\inertia-test\vendor\laravel\framework\src\Illuminate\Container\Util.php:41 Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
The bug is from inertia-laravel v0.6.7 and Windows because PCNTL extension is not available on Windows, see https://www.php.net/manual/en/intro.pcntl.php
v0.6.7
@ycs77 Hey thanks for reporting, this has been fixed: https://github.com/inertiajs/inertia-laravel/pull/492
If call the
php artisan inertia:start-ssr
command on Windows, then get this error:The bug is from inertia-laravel
v0.6.7
and Windows because PCNTL extension is not available on Windows, see https://www.php.net/manual/en/intro.pcntl.php