simonhamp / laravel-nova-csv-import

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

"foreach() argument must be of type array|object, null given" #38

Closed lovecoding-git closed 2 years ago

lovecoding-git commented 2 years ago

-Laravel Version 9 -Nova 3.29 -CSV 0.3.0

When I import csv file, I'm getting 422 error and error screen is this.

image

simonhamp commented 2 years ago

@lovecoding-git Are you able to share the file you're importing and the details of which version of this package you're using?

ninjasitm commented 2 years ago

Seeing the same issue with the same versions as @lovecoding-git . CSV is the following:

word,language
asdioj,en
asddpoikj,en
aofij,en
afiojo,en
matthijs-neijenhuijs commented 2 years ago

same problem here.

qtvhao commented 2 years ago

This works for me. composer require simonhamp/laravel-nova-csv-import:v0.2.0

simonhamp commented 2 years ago

Hey folks, so I think v0.3.0 has some issues.

I'm afraid I haven't used it much at that stage so I'm less familiar with the issues presenting there.

If you're not running Nova 4 yet, please use an older version (<0.3) of this package. Please note however, that I'm not actively supporting these older versions for free.

If you're 'stuck' on Nova <4 and need a fix or other work on this package that you're not prepared to PR, let's discuss how you can contract me to do the needed work.