Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue i18n functions not available inside dialog #15

Open
LeBenLeBen opened this issue Jul 22, 2019 · 1 comment
Open

Vue i18n functions not available inside dialog #15

LeBenLeBen opened this issue Jul 22, 2019 · 1 comment
Labels

Comments

@LeBenLeBen
Copy link

I use this plugin to display a form that use various calls to Vue i18n $t function. It systematically throws the following error:

TypeError: i18n is undefined

If I move my code outside of the Dialog, it works just fine. I've found related issues here and there about Vue i18n and Portal Vue mounting-portal component (LinusBorg/portal-vue#199, kazupon/vue-i18n#184 (comment)) so I decided to try adapting it and see if it works.

I was surprised to see that just by copying your source A11yDialog component within my project solved the issue. Could it be something in the compiled version that cause this?

I don't know if you have an idea about what it could be? In any case providing the source component into the npm package would actually be enough for me and avoid having to copy it manually within my project.

@morkro
Copy link
Owner

morkro commented Aug 3, 2019

Thanks for raising this @LeBenLeBen! Let me investigate the issue and report back asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants