Replies: 3 comments
-
If you're getting this error it probably means that you don't have SSR set up. I think it's because your And if you don't need it to be rendered on the server at all, you can use |
Beta Was this translation helpful? Give feedback.
-
I've put together a quick example project |
Beta Was this translation helpful? Give feedback.
-
Thank you for responding and for the demonstration. That was my very next step to debug what was going on, so you've saved me a step! I did actually have Great to know that it does work, not great to know that it means I've got some buggy code of my own somewhere 😬 |
Beta Was this translation helpful? Give feedback.
-
I've got Astro set up to render my App component using
client:load
, and I'm using theRouter
component to wrap the export of the App component in the App file, but Astro still complains thatlocation
is not defined..Without/without
witeRouter
wrappingApp
, the error is alwayswhich indicates to me that the
Router
itself isn't helping?Beta Was this translation helpful? Give feedback.
All reactions