Joey
Joey
NNuxt
Created by Joni on 4/29/2024 in #❓・help
Layout optional for page
This thread might be of use to you: https://github.com/nuxt/nuxt/issues/14658
2 replies
NNuxt
Created by Quick on 4/29/2024 in #❓・help
Examples on using i18n, in real world applications
I'm using i18n for our websites, but what exactly is your question?
3 replies
NNuxt
Created by Sun on 4/30/2024 in #❓・help
Teleport doesn't work with Nuxt Bridge
You might need the 'vue2-teleport' or 'portal-vue' package for that functionality to work.
2 replies
NNuxt
Created by schmidi on 4/5/2024 in #❓・help
navigateTo inside plugin not working
Maybe try the first approach again but with declaring nuxtApp.
async onResponseError({ response }) {
if (response.status === 401) {
const nuxtApp = useNuxtApp()
console.log("401") // gets printed

await callWithNuxt(nuxtApp, navigateTo, [
"/user/login",
{ replace: true, redirectCode: 401 },
])
}
}
async onResponseError({ response }) {
if (response.status === 401) {
const nuxtApp = useNuxtApp()
console.log("401") // gets printed

await callWithNuxt(nuxtApp, navigateTo, [
"/user/login",
{ replace: true, redirectCode: 401 },
])
}
}
2 replies
NNuxt
Created by Gal on 4/8/2024 in #❓・help
TS18046:  $i18n  is of type  unknown (Nuxt 3.8 => 3.11.2)
Maybe write it like this?
useNuxtApp().$i18n.locale.value
useNuxtApp().$i18n.locale.value
2 replies
NNuxt
Created by Markus Geilehner on 4/9/2024 in #❓・help
Pre-Render not pre rendering
Doesn't the hook need to be a function? I am using it like this:
hooks: {
async 'nitro:config'(nitroConfig) {
const routesToGenerate = []
routesToGenerate.push('/some/route')
nitroConfig.prerender.routes.push(...routesToGenerate)
}
}
hooks: {
async 'nitro:config'(nitroConfig) {
const routesToGenerate = []
routesToGenerate.push('/some/route')
nitroConfig.prerender.routes.push(...routesToGenerate)
}
}
2 replies
NNuxt
Created by Denis Jankelaic on 4/9/2024 in #❓・help
Partytown + Nuxt3
I've been wondering this myself as well. Does it not work if you install the
@nuxtjs/partytown
@nuxtjs/partytown
module and add
type="text/partytown"
type="text/partytown"
to the script?
2 replies