mpgalaxy
Explore posts from serversi18n in modal (nuxt3)
I found the mistake...unbelievable! 😛
There seems to be a problem with the
defineNuxtComponent
method as a wrapper for the options api, it mainly seems to be aimed at async data which causes my error. So instead of doing a
you can use the native vue function defineComponent
and the modal works perfectly fine...omg! 😉7 replies
i18n in modal (nuxt3)
The browser debug gives me:
I have no async setup and since I call this modal from javascript I don't have
<Suspense>
tags
is this a bug ? how can I call this modal from javascript without having it pre rendered and shown by condition ?
If I use composition api like this
everything works fine, but I need the options api, switch to composition api is a no go (migrating a very huge project from nuxt2 to nuxt3 with many modals and lots of logic inside these modals)7 replies
i18n in modal (nuxt3)
my issue is with oruga modal. I'm on nuxt3 calling my modal from javascript (options api) like this:
The TestModal is very basic and I want to provide i18n functionality (also options api), but when I add
useI18n
the modal doesn't show, it just shows a black overlay. Modal:
7 replies