-
-
Notifications
You must be signed in to change notification settings - Fork 245
navigation error by not use the installed plugins #1018
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
Comments
Should be fixed by 3e5c9f1 |
@rigor789 can you open this issue, now it doesn't complain about pinia but i have errors in plugins
|
I'm guessing Seems redundant in most cases... |
Yes, I know, I think the same thing but there are many components that do this use() syntactic sugar just to register the component. In any case, even the components that do more things should also be updated so that it doesn't fail anyway... If this is not a performance problem, I would set the override to true by default so as not to heat our heads over this... |
I'm worried about plugins that perhaps do more than just Will need to think a bit more about this, perhaps navigate/modals shouldn't create new apps, or at least make them "sub-apps" of the root app or something like that instead... |
Could you make a function render (h()) that renders the component you navigate to? and so we would not have to create more applications |
I'm having the same issue when I use "$navigateTo" when click on button I got " Error: Element for MapView already registered." It is because I'm using the plugging like this: import GoogleMaps from '@nativescript/google-maps/vue' and then const app = createApp(Home) |
@camilo02021 you can register MapView as: import {createApp, registerElement} from 'nativescript-vue';
registerElement("MapView", () => require('@nativescript/google-maps').MapView)
... |
Excellent, very helpful, it works, it happens only with vue3, In vue2 I can
use it by "Vue.use(GoogleMaps)"
El lun, 10 abr 2023 a las 16:30, Juan de Dios Martínez Vallejo (<
***@***.***>) escribió:
… @camilo02021 <https://github.com/camilo02021> you can register MapView as:
import {createApp, registerElement} from 'nativescript-vue';
registerElement("MapView", () => ***@***.***/google-maps').MapView)
...
—
Reply to this email directly, view it on GitHub
<#1018 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATNAV536SP3WHXB333BWKU3XAR3XDANCNFSM6AAAAAASYKYAMM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Uh oh!
There was an error while loading. Please reload this page.
When you navigate to a new page I get this warn because the plugin is not being passed to the newly created app. I have created in my local a array of the plugins that are used and if it is applied in each createApp the error disappears. Warn:
The text was updated successfully, but these errors were encountered: