Package
filament/filament
Package Version
v.5
Laravel Version
12.50.0
Livewire Version
No response
PHP Version
8.4.16
Problem description
During the upgrade process from Filament v4.5 to Filament v.5.* I ran into the following error:
Incompatible plugins found!
The following plugins are incompatible with Filament v5 and need to be removed before upgrading:
leandrocfe/filament-apex-charts
You could temporarily remove them from your composer.json file until they've been upgraded, replace them with a similar plugin that is compatible with v5, wait for the plugins to be upgraded before upgrading your app, or even write PRs to help the authors upgrade them.
PHP Fatal error: Uncaught RuntimeException: Prompts is not currently supported on Windows. Please use WSL or configure a fallback. in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php:435
Stack trace:
#0 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php(117): Laravel\Prompts\Prompt->checkEnvironment()
#1 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\helpers.php(126): Laravel\Prompts\Prompt->prompt()
#2 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\src\check-compatibility.php(219): Laravel\Prompts\confirm('Do you want to ...', false, 'Yes - Continue ...', 'No - Abort upgr...', false, NULL, 'You'll need to ...')
#3 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\bin\filament-v5(44): require('D:\\Code\\filamen...')
#4 D:\Code\filament-php-upgrade-bug\vendor\bin\filament-v5(119): include('D:\\Code\\filamen...')
#5 {main}
thrown in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php on line 435
Fatal error: Uncaught RuntimeException: Prompts is not currently supported on Windows. Please use WSL or configure a fallback. in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php:435
Stack trace:
#0 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php(117): Laravel\Prompts\Prompt->checkEnvironment()
#1 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\helpers.php(126): Laravel\Prompts\Prompt->prompt()
#2 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\src\check-compatibility.php(219): Laravel\Prompts\confirm('Do you want to ...', false, 'Yes - Continue ...', 'No - Abort upgr...', false, NULL, 'You'll need to ...')
#3 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\bin\filament-v5(44): require('D:\\Code\\filamen...')
#4 D:\Code\filament-php-upgrade-bug\vendor\bin\filament-v5(119): include('D:\\Code\\filamen...')
#5 {main}
thrown in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php on line 435
The package that caused the error - leandrocfe/filament-apex-charts does have v5 support. So I installed their latest version: composer require leandrocfe/filament-apex-charts:"^5.0" via their documentation.
I once again receive the same errors.
Incompatible plugins found!
The following plugins are incompatible with Filament v5 and need to be removed before upgrading:
leandrocfe/filament-apex-charts
You could temporarily remove them from your composer.json file until they've been upgraded, replace them with a similar plugin that is compatible with v5, wait for the plugins to be upgraded before upgrading your app, or even write PRs to help the authors upgrade them.
PHP Fatal error: Uncaught RuntimeException: Prompts is not currently supported on Windows. Please use WSL or configure a fallback. in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php:435
Stack trace:
#0 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php(117): Laravel\Prompts\Prompt->checkEnvironment()
#1 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\helpers.php(126): Laravel\Prompts\Prompt->prompt()
#2 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\src\check-compatibility.php(219): Laravel\Prompts\confirm('Do you want to ...', false, 'Yes - Continue ...', 'No - Abort upgr...', false, NULL, 'You'll need to ...')
#3 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\bin\filament-v5(44): require('D:\\Code\\filamen...')
#4 D:\Code\filament-php-upgrade-bug\vendor\bin\filament-v5(119): include('D:\\Code\\filamen...')
#5 {main}
thrown in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php on line 435
Fatal error: Uncaught RuntimeException: Prompts is not currently supported on Windows. Please use WSL or configure a fallback. in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php:435
Stack trace:
#0 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php(117): Laravel\Prompts\Prompt->checkEnvironment()
#1 D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\helpers.php(126): Laravel\Prompts\Prompt->prompt()
#2 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\src\check-compatibility.php(219): Laravel\Prompts\confirm('Do you want to ...', false, 'Yes - Continue ...', 'No - Abort upgr...', false, NULL, 'You'll need to ...')
#3 D:\Code\filament-php-upgrade-bug\vendor\filament\upgrade\bin\filament-v5(44): require('D:\\Code\\filamen...')
#4 D:\Code\filament-php-upgrade-bug\vendor\bin\filament-v5(119): include('D:\\Code\\filamen...')
#5 {main}
thrown in D:\Code\filament-php-upgrade-bug\vendor\laravel\prompts\src\Prompt.php on line 435
I followed the upgrade steps directly from the documentation: https://filamentphp.com/docs/5.x/upgrade-guide
Expected behavior
Given that the package, /leandrocfe/filament-apex-charts has support for v5 - it should have gone through wihtout an issue.
Steps to reproduce
- Install Filament v4.5
- Install Apex Charts Plugin v4 (and setup in the Provider)
- Install Filament v5 per the Upgrade Guide
- Run the upgrade command
vendor/bin/filament-v5
Workaround to fix:
- Temp. remove Apex Charts Plugin
- Run the Upgrade
- Re-add the Apex Charts Plugin v5 which gives no errors
Reproduction repository (issue will be closed if this is not valid)
https://github.com/pschilly/filament-php-upgrade-bug
Relevant log output
Package
filament/filament
Package Version
v.5
Laravel Version
12.50.0
Livewire Version
No response
PHP Version
8.4.16
Problem description
During the upgrade process from Filament v4.5 to Filament v.5.* I ran into the following error:
The package that caused the error -
leandrocfe/filament-apex-chartsdoes have v5 support. So I installed their latest version:composer require leandrocfe/filament-apex-charts:"^5.0"via their documentation.I once again receive the same errors.
I followed the upgrade steps directly from the documentation: https://filamentphp.com/docs/5.x/upgrade-guide
Expected behavior
Given that the package,
/leandrocfe/filament-apex-chartshas support for v5 - it should have gone through wihtout an issue.Steps to reproduce
vendor/bin/filament-v5Workaround to fix:
Reproduction repository (issue will be closed if this is not valid)
https://github.com/pschilly/filament-php-upgrade-bug
Relevant log output