F
Filament11mo ago
Matthew

Error when installing filament from forked repo

Error:
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception

In autoload_real.php line 41:

require(/home/mateo/Desktop/laravel/vendor/composer/../filament/filament/tests/helpers.php): Failed to open stream: No such file or directory
Script Illuminate\Foundation\ComposerScripts::postAutoloadDump handling the post-autoload-dump event terminated with an exception

In autoload_real.php line 41:

require(/home/mateo/Desktop/laravel/vendor/composer/../filament/filament/tests/helpers.php): Failed to open stream: No such file or directory
Solution:
/home/mateo/Desktop/filament/packages/*
Jump to solution
18 Replies
Matthew
MatthewOP11mo ago
My composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/username/filament"
}
],
"require": {
"php": "^8.1",
"filament/filament": "*",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/username/filament"
}
],
"require": {
"php": "^8.1",
"filament/filament": "*",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.1",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
This happens in a fresh laravel project, when installing filament
awcodes
awcodes11mo ago
you're going to a repo through VCS, shouldn't the version still be "^3.0"
Matthew
MatthewOP11mo ago
Shoudlnt I do it through vcs?
awcodes
awcodes11mo ago
* is going to look for a specific branch on the repo called dev-main which probably doesn't exist are you trying to do a PR
Matthew
MatthewOP11mo ago
Yes, I am
awcodes
awcodes11mo ago
clone the fork down to your machine
Matthew
MatthewOP11mo ago
I also tried that
awcodes
awcodes11mo ago
change the path to where every it is on your machine
Matthew
MatthewOP11mo ago
But filament isnt installed, dspite getting no errors I will show
awcodes
awcodes11mo ago
make sure your clone is on the 3.x branch then the "*" will work
Matthew
MatthewOP11mo ago
"repositories": [
{
"type": "path",
"url": "/home/mateo/Desktop/filament"
}
],
"require": {
"php": "^8.1",
"filament/filament": "3.x",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
"repositories": [
{
"type": "path",
"url": "/home/mateo/Desktop/filament"
}
],
"require": {
"php": "^8.1",
"filament/filament": "3.x",
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^10.10",
"laravel/sanctum": "^3.3",
"laravel/tinker": "^2.8"
},
Matthew
MatthewOP11mo ago
No description
Solution
awcodes
awcodes11mo ago
/home/mateo/Desktop/filament/packages/*
Matthew
MatthewOP11mo ago
Confirming its in vendor
No description
Matthew
MatthewOP11mo ago
oh
awcodes
awcodes11mo ago
this is a mono repo
awcodes
awcodes11mo ago
GitHub
GitHub - filamentphp/filament: A collection of beautiful full-stack...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - GitHub - filamentphp/filament: A collection ...
Matthew
MatthewOP11mo ago
Thank you! I read this, but I thought it was only for developing plugins, not installing filament itself
Want results from more Discord servers?
Add your server