humblemodulo
Explore posts from serversHow do you query `z.array()` fields (e.g. tags) in the latest content module (v3.alpha.8)
In the previous version of
Definitely need to know the best way to match values in
nuxt-content
(v2) I would simply query tags like so:
However there is no contains
in v3, and the logic for in
seems to require the reverse operation. I've tried like
and that doesn't work either.Definitely need to know the best way to match values in
z.array()
field types.10 replies
Typescript autocompletion in ".vue" files "broken"
TL;DR TS
I'm not sure what's gone wrong, but I am no longer getting proper autocomplete functionality in ".vue" files. All ".ts" files work just fine. For example, if I begin typing
import
autocompletion works in ".ts" files, but no longer works in ".vue" files
Note: Had been saving the application locally, but didn't have a git commit
that I could roll back to (in case it's code/config related)
Hi All,
Currently using VS Codium.I'm not sure what's gone wrong, but I am no longer getting proper autocomplete functionality in ".vue" files. All ".ts" files work just fine. For example, if I begin typing
import MyCustomCom ...
in ".ts" files, I'll begin to get component and file recommendations. However, this functionality is completely gone in ".vue" files.
I did update to the latest version of "Vue Official" in the last 24 hours, and that seems to be when things went wrong. However, I've tried force rolling back to earlier versions, but nothing changes.
My current (now veeeeeery different) "tsconfig.json" looks like so:
nuxt.config.ts looks like so:
What completely obvious configuration am I missing? 🤔7 replies
trpc with Nuxt 4
I'm having trouble trying to use trpc with Nuxt 4. I've moved plugins to the app directory as per the new structure, but following the trpc-nuxt instructions otherwise (https://trpc-nuxt.vercel.app/get-started/usage/recommended).
The returned
$client
value is a Proxy instance that has no capabilities otherwise.
Anyone able to provide some insight as to the issue, or perhaps a better way to go about it? Perhaps using trpc directly without any Nuxt-specific bindings? 🤔3 replies