dwol
dwol
NNuxt
Created by Kernel Panic on 4/23/2025 in #❓・help
Can't seem to access deeply nested object from async pinia store method
I would just use $fetch in this case instead of useFetch
10 replies
NNuxt
Created by dwol on 5/1/2024 in #❓・help
How can I mock or stub Keycloak in unit tests?
yeah mocking 'useNuxtApp' seemed to do the trick
const mockLogin = vi.fn()

mockNuxtImport('useNuxtApp', () => {
return () => (
{
$keycloak: {
login: mockLogin,
...other properties
}
}
)
})
const mockLogin = vi.fn()

mockNuxtImport('useNuxtApp', () => {
return () => (
{
$keycloak: {
login: mockLogin,
...other properties
}
}
)
})
3 replies
NNuxt
Created by mdthansil on 4/9/2025 in #❓・help
Nuxt UI 3 useOverlay() not showing modals
30 replies
NNuxt
Created by Mole on 4/8/2025 in #❓・help
useAsyncData - opt out of reactive error handling
or custom $fetch plugin with onResponseError and use that instead of the provided $fetch
22 replies
NNuxt
Created by Mole on 4/8/2025 in #❓・help
useAsyncData - opt out of reactive error handling
If you don't want to do this everywhere you call useAsyncData you'll probably need to create a custom wrapper composable with whatever logic you want in there https://nuxt.com/docs/guide/recipes/custom-usefetch#custom-usefetch
22 replies
NNuxt
Created by Mole on 4/8/2025 in #❓・help
useAsyncData - opt out of reactive error handling
22 replies
NNuxt
Created by Mole on 4/8/2025 in #❓・help
useAsyncData - opt out of reactive error handling
This is super basic but can't you do something like this?
22 replies
NNuxt
Created by Mole on 4/8/2025 in #❓・help
useAsyncData - opt out of reactive error handling
I don't fully understand your question. You want to exclude certain errors from being caught by useAsyncData?
22 replies
NNuxt
Created by Yassaaa on 4/7/2025 in #❓・help
I just need help from the nuxt ai
FYI You can use the nuxt AI on the nuxt website instead of using it here. 1. Go the Nuxt Site 2. Click the search icon in the top right 3. Select 'Ask AI' from the menu
16 replies
NNuxt
Created by Nawi on 3/25/2025 in #❓・help
Nuxt content style and prose
I took this and modified it to match our theme https://gist.github.com/adamwathan/41dcab602afd07ac8ba243eb186c324a
10 replies
NNuxt
Created by Felix on 3/19/2025 in #❓・help
how to have a playground page in a nuxt layer
The later template has a good example of this. https://nuxt.new/
10 replies
NNuxt
Created by dmarr on 3/11/2025 in #❓・help
Is it possible to remove a plugin inherited from a layer via module?
Did you find an easy solution for this?
6 replies
NNuxt
Created by Koizumi on 3/10/2025 in #❓・help
Add gtm with nuxt
41 replies
NNuxt
Created by Timo on 2/8/2025 in #❓・help
Nuxt layers relative path
In project 1:
alias: {
'#baseWeb': fileURLToPath(new URL('./app', import.meta.url))
},
alias: {
'#baseWeb': fileURLToPath(new URL('./app', import.meta.url))
},
Then in project 2:
import something from '#baseWeb'
import something from '#baseWeb'
15 replies
NNuxt
Created by Timo on 2/8/2025 in #❓・help
Nuxt layers relative path
have you tried creating an alias? https://nuxt.com/docs/api/nuxt-config#alias I have this working for my current project
15 replies
NNuxt
Created by IsaacR943 on 11/19/2024 in #❓・help
Error deploying to fly.io
Hmm okay that is unfortunate. This is definitely something I'll need to look into
10 replies
NNuxt
Created by IsaacR943 on 11/19/2024 in #❓・help
Error deploying to fly.io
Were you able to sort this out at all? Im running into a similar issue
10 replies
NNuxt
Created by deetstrab on 12/1/2024 in #❓・help
Dynamic Nuxt Form Validation
Sorry if I’m not being clear, using z.array does work for us.
10 replies
NNuxt
Created by deetstrab on 12/1/2024 in #❓・help
Dynamic Nuxt Form Validation
We have something similar but we use zod with the :schema prop on UForm. For the schema the property is an array and you use the z.array(). I know that’s not super helpful because you are using a custom validate function but we’ve been pretty happy with zod so I think it’s something worth to look into
10 replies