F
Filament12mo ago
Ali

make:filament-importer is not defined.

It's my first time working with Filament, and the filament-importer actions grasped my attention. Followed the documentation to make this package work but i keep getting this error ERROR Command "make:filament-importer" is not defined. Did you mean one of these? after doing this terminal command "php artisan make:filament-importer Invoice". Thank you in advance.
14 Replies
Lara Zeus
Lara Zeus12mo ago
I think you need composer update to make sure you're in the last version of filament 3.1
Ali
AliOP12mo ago
just have done composer update, and nope the problem still persists. Any other idea on how to fx it ?
DrByte
DrByte12mo ago
what's the output of php artisan about?
Ali
AliOP12mo ago
Hello @DrByte here's the output of my php artisan about
No description
igorclauss
igorclauss12mo ago
Your filament version is below 3.1. The import action was introduced in v 3.1.
Ali
AliOP12mo ago
how can i upgrade the filament package ? doing composer upgrade, composer update. both terminal commands didnt upgrade my filament version.
Lara Zeus
Lara Zeus12mo ago
what is the version of filament in your composer
Ali
AliOP12mo ago
@Lara Zeus here it is
No description
Lara Zeus
Lara Zeus12mo ago
use ^3.0-stable
Ali
AliOP12mo ago
GREAT NOW IT WORKS ! but following through the docs and adding the action to the table function i got this error "Cannot use League\Csv\Reader as CsvReader because the name is already in use"
No description
Ali
AliOP12mo ago
InvoiceImporter**
Ali
AliOP12mo ago
FOUND it. in the CanImportRecords class you duplicated the import
No description
igorclauss
igorclauss12mo ago
Yes, @DrByte already submitted a pull request to fix this. When you update today to 3.1.18 it will be fixed.
Ali
AliOP12mo ago
Thank you !
Want results from more Discord servers?
Add your server