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

<Home> received an unexpected slot "default" #1785

Open
harryqt opened this issue Feb 2, 2024 · 0 comments
Open

<Home> received an unexpected slot "default" #1785

harryqt opened this issue Feb 2, 2024 · 0 comments
Assignees
Labels
svelte Related to the svelte adapter

Comments

@harryqt
Copy link

harryqt commented Feb 2, 2024

Version:

  • @inertiajs/svelte version: 1.0.14

Describe the problem:

First reported on #1436 but closed because of a cleanup process.

Following official guide this warnings shows up in console.

<App> was created with unknown prop 'initialPage' [@inertiajs_svelte.js:6866:15](http://[::1]:5173/node_modules/.vite/deps/@inertiajs_svelte.js?v=965059e3)
<App> was created with unknown prop 'resolveComponent' [@inertiajs_svelte.js:6866:15](http://[::1]:5173/node_modules/.vite/deps/@inertiajs_svelte.js?v=965059e3)
<Home> received an unexpected slot "default". [dev.js:228:11](http://[::1]:5173/node_modules/svelte/src/runtime/internal/dev.js)
<Home> was created with unknown prop 'errors' [Home.svelte:60:92](http://[::1]:5173/resources/js/Pages/Home.svelte)
Screenshot 2024-02-02 at 1 24 17 PM

If remove props from setup() method in app.js, I am left with this warnings

<Home> received an unexpected slot "default". [dev.js:228:11](http://[::1]:5173/node_modules/svelte/src/runtime/internal/dev.js)
<Home> was created with unknown prop 'errors' [Home.svelte:60:92](http://[::1]:5173/resources/js/Pages/Home.svelte)
Screenshot 2024-02-02 at 1 26 56 PM

Steps to reproduce:

Just follow the official guide, or check out https://github.com/Dibbyo456/inertia-bug-report

@harryqt harryqt added the svelte Related to the svelte adapter label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
svelte Related to the svelte adapter
Projects
None yet
Development

No branches or pull requests

2 participants