Hendrik Jan
Auto-import of /utils not working in VS-Code in template block
Seems like a solution PR is in the making for the next 3.x version: https://discord.com/channels/473401852243869706/1270328509784522753
14 replies
Auto-import of /utils not working in VS-Code in template block
Hey, thanks for the help.
Unfortunately none of the suggestions work 😢
export { t } from '../utils/translate
is there in imports.d.ts
, but restarting VS-Code didn't fix.
Within <script>
block no error, but within <template>
this problem is still not fixed.
I also tried another editor (Zed) --> same problem.14 replies
Can you extend H3EventContext?
@Gerbuuun Thanks.
It seems like I had some other problems with TypeScript to fix first.
And probably a restart of the server also fixed something.
Now I'm using
const context = event.context as Context
and it is working.
Your solution looks like the way to do it, but I coudn't get it to work in my project. I might try that again later.4 replies
Error "currentRenderingInstance is null" since upgrade of Nuxt
A bit more info: the error only happens the first time after the nodejs server is reloaded. I've set ssr:false so it's not a hydration problem. Als the problem is only in dev mode, not when building.
5 replies
Can you use useFetch twice in one composable, once on server, once in client?
In case someone else wants to solve a similar problem, here is a working reproduction with some accompanying text: https://stackblitz.com/edit/github-o9ivmk-qkcdj8?file=app.vue
15 replies