$route undefined Error in SSR mode #13039
Replies: 4 comments 6 replies
-
Please post a reproduction repo or a https://codesandbox.quasar.dev with a minimal reproduction so we can help you get through with your problem. |
Beta Was this translation helpful? Give feedback.
-
You are using this in template |
Beta Was this translation helpful? Give feedback.
-
The error message is clear about trying to access $route from this which is undefined |
Beta Was this translation helpful? Give feedback.
-
Hi, I think i found the problem. Even on a fresh quasar project using Vuex alone on a webpack, it seems we need to install pinia dependencies. The reason is when i run Seems, vuex require pinia Thanks everyone. |
Beta Was this translation helpful? Give feedback.
-
I'm new to that ssr thing and I get errors that doesn't make sense.. I was working without any problem, shut down the terminal and run again then I get $route undefined error from following line... didn't change anything related with this in my code. I will go crazy. when I shift to spa mode it works.. what's wrong with ssr mode ??
<div class="flex flex-center" v-if="!showText && this.$route.path !== nav.route" key="icon"><img :src="'images/feature/' + nav.img" height="60" /></div>
full error text is
Beta Was this translation helpful? Give feedback.
All reactions