Open borcherds-ralph opened 4 weeks ago
I'm going to follow the following steps to help you solve the GitHub issue:
Here are the changes we decided to make. I'm done making edits and now I'm just validating the changes using a linter to catch any mistakes like syntax errors or undefined variables:
app/Filament/Resources/PageResource.php
Add the missing `isDeferred` method to the `PageResource` class.
---
+++
@@ -6,4 +6,9 @@
Pages\EditPage::route('/{record}/edit'),
];
}
+
+ public static function isDeferred(): bool
+ {
+ return false;
+ }
}
composer.json
Update the `filament/filament` and `livewire/livewire` package versions to ensure compatibility.
---
+++
@@ -1,6 +1,6 @@
"require": {
"php": "^8.2",
- "filament/filament": "^3.2",
+ "filament/filament": "^2.0",
"guzzlehttp/guzzle": "^7.8",
"laravel/framework": "^11.0",
"laravel/octane": "^2.3",
@@ -8,5 +8,5 @@
"laravel/tinker": "^2.9",
"spiral/roadrunner-cli": "^2.6.0",
"spiral/roadrunner-http": "^3.3.0",
- "livewire/livewire": "^3.5"
+ "livewire/livewire": "^2.0"
},
Your changes have been successfully made to the branch sweep/error_when_running_composer_the_first_ti
. I have validated these changes using a syntax checker and a linter.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
Reverted changes to composer. Merged the is Deferred method. Please confirm
Filament did upgrade during composer, but it did not resolve the error
@borcherds-ralph this will be fixed next week. We are focusing on stability next week on all Liberu projects.
Try pulling. I think I already solved.
Now I am getting this:
BadMethodCallException
Method App\Filament\Resources\PageResource::register does not exist.
at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:115 111▕ */ 112▕ public function __call($method, $parameters) 113▕ { 114▕ if (! static::hasMacro($method)) { ➜ 115▕ throw new BadMethodCallException(sprintf( 116▕ 'Method %s::%s does not exist.', static::class, $method 117▕ )); 118▕ } 119▕
i Bad Method Call: Did you mean App\Filament\Resources\PageResource::registerRoutes() ?
+7 vendor frames
8 artisan:35 Illuminate\Foundation\Console\Kernel::handle()
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Details
When running composer for the first time to update all the dependencies, I get the following error:
In Macroable.php line 115:
Method App\Filament\Resources\PageResource::isDeferred does not exist.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1