Muhammad Mahmoud

Results 48 comments of Muhammad Mahmoud

> This is what I do since it should get the instance of i18n since this package is only a wrapper for that vue-i18n. Not sure if its documented but...

> It works for me too but I have a typescript error: > > ``` > Module '"vue-i18n"' has no exported member 'useI18n'. Did you mean to use 'import useI18n...

**UPDATE: This works in dev and production** ```javascript definePageMeta({ middleware: () => { const { vueApp } = useNuxtApp(); const i18n = vueApp.config.globalProperties.$i18n }, }); ``` **Original Answer** +1. This...

@brunokunace import the nuxt app in your `.js` then you're good to go. This is the modified version of my answer above. You could use `import { useNuxtApp } from...

@brunokunace I think the problem is due to SSR too but unfortunately I dont know how to help

@nestle49 Can this be placed as a nitro plugin in a nuxt project instead?

One major feature imo is implementing `NuxtServerInit` like Vuex. Auto importing `defineStore` and `acceptHMRUpdate` by default in nuxt 3 for minimal config (just adding pinia to modules) would be great...

Same error on `nuxt dev`. `nuxt generate` works ``` ERROR [worker reload] [worker init] Only URLs with a scheme in: file, data are supported by the default ESM loader. On...

Anyone got this to work?

@Gumbraise What you done is a workaround. The issue is not in the robots module itself