Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
philharmonie opened this issue Sep 29, 2022 · 2 comments
Closed

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

philharmonie opened this issue Sep 29, 2022 · 2 comments

Comments

@philharmonie
Copy link

philharmonie commented Sep 29, 2022

Installed the package as described and get

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

for @laravelPWA.
It is related to this foreach loop.

What I noticed, is that after $ php artisan vendor:publish --provider="LaravelPWA\Providers\LaravelPWAServiceProvider" there is just the serviceworker.js but not the manifest.json. The file is in public and not as mentioned in the troubleshooting in the project root, but I'd say, that is correct.

@philharmonie
Copy link
Author

After researching I fixed it by adding a default value for the config. I removed the custom key in the config.php because I thought, it is not needed.

@philharmonie
Copy link
Author

#86

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant