rompetomp / inertia-bundle

Inertia.js server-side adapter for Symfony
MIT License
152 stars 39 forks source link

Argument #1 ($url) must be of type string, null given #45

Closed YummYume closed 2 years ago

YummYume commented 2 years ago

Rompetomp\InertiaBundle\Service\Inertia::setSsrUrl(): Argument #1 ($url) must be of type string, null given, called in /app/var/cache/dev/ContainerLcyDPuy/App _KernelDevDebugContainer.php on line 1664

Happens when executing cache:clear (so right after installation). It is fixed by adding an empty string as url in the rompetomp_inertia.yaml config file.

rompetomp commented 2 years ago

I’m on my phone now, but it should be fixed with the latest version. Can you confirm?

YummYume commented 2 years ago

@rompetomp Just tested and works all fine. Thanks for the quick fix! :+1: