-
Notifications
You must be signed in to change notification settings - Fork 55
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
import '@stencil/router'; #96
Comments
@shallurohilla Thank you for posting it here at least. |
This issue tripped me up too. |
Where is it imported in the default application? Can you give an example of what doesn't work without the import? I'm asking because the stenciljs documentation is so thin I'm not sure what I'm missing out on! |
I don't know what you mean by the default application, however if you take a look at the stencil-site it is imported inside the app-root component: |
Thanks @stephanhuber, we must be talking about different things?
...doesn't create anything like that? |
Just cost me more than 1h to figure this out. What's remarkable is that in the demo, src/components.d.ts does import @stencil/router, but this is a generated file. The root tsx, src/components/router-demo-app.tsx, is lacking that import statement. |
Thanks for sharing. Using this for component |
JEEZ, I spent about an hour just trying to figure out why nothing works. Thanks man! |
It should be mentioned somewhere that the router needs to be imported within the root stencil component otherwise nothing works. This is IMHO not documented anywhere...
The text was updated successfully, but these errors were encountered: