simonhamp / laravel-nova-csv-import

The best CSV import component for Laravel Nova
https://novapackages.com/packages/simonhamp/laravel-nova-csv-import
MIT License
166 stars 76 forks source link

Nova experienced an unrecoverable error. #79

Open khawala opened 10 months ago

khawala commented 10 months ago

hello all i got this error when i try to upload the csv file i don't know why it was work before Nova experienced an unrecoverable error. local.ERROR: foreach() argument must be of type array|object, null given {"userId":1,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, null given at ...\vendor\laravel\framework\src\Illuminate\Http\Resources\ConditionallyLoadsAttributes.php:20)

simonhamp commented 10 months ago

@khawala Please if you can share:

It's only possible to investigate these issues with all of this.

khawala commented 10 months ago

@simonhamp hello sir this package was work with me before now whatever i choose as a csv file only after i click on upload and config image i got this error
image i don't have any customization in the import class and this is the csv file users.csv

prakhargvp commented 10 months ago

I'm also getting same issue and not able to find uploaded file in storage directory.

CleanShot 2023-11-07 at 06 52 17

khawala commented 10 months ago

any update

Bibesko commented 9 months ago

Because you have some error on one of the resources. Open the log file on the project and see what it is about, or add public static $canImportResource = false; foreach resource.