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
again: <component> was created with unknown prop 'params' #98
Comments
This is a good point but it's not something I can fix. First, please note that it's just a warning that Svelte (not the router) emits, so: it won't break your app, and it's not something we can disable. The fix for #83 consisted in passing the In the case of the There's not much we can do there. It's not possible for a Svelte component to inspect another Svelte component and check if it exposes any prop (that is only possible if Svelte components are compiled as "custom elements" per https://svelte.dev/docs#Custom_element_API ). You can only adopt a workaround, which can be one of:
I understand this is not ideal, but sadly this is not something we can change as it's how Svelte works. |
This is very annoying and I think there must be a better solution. |
@frederikhors I'm happy to accept PRs :) |
I wish I was capable of. |
I opened this: sveltejs/svelte#4652. We'll see. |
Thank you! I had opened another issue too asking for an API, but your approach seems better :) |
What is your issue? Can you link here? |
I <3 you and your router! |
Thank you! :) |
Adding This fixed the warning I was getting.
|
It seems that this bug is not fully fixed:
#83
404-Components still have this issue for me
The text was updated successfully, but these errors were encountered: