What is the correct path to import useSSRContext in a ts file? #13369
Unanswered
penny70463
asked this question in
CLI - SSR mode
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on rewriting js file into ts file in a Vue3 SSR project,
I import useSSRContext in js file by using "import { useSSRContext } from 'vue';" which was work.
But when it comes to ts file I got
"error TS2305: Module '"..../node_modules/vue/dist/vue"' has no exported member 'useSSRContext'."
I had tried " from '@vue/...' " still couldn't figure out.
Please give some hints, thanks!
Beta Was this translation helpful? Give feedback.
All reactions