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

Error: Element for MapView already registered #1037

Open
camilo02021 opened this issue Apr 10, 2023 · 4 comments
Open

Error: Element for MapView already registered #1037

camilo02021 opened this issue Apr 10, 2023 · 4 comments
Labels
V3 Issues related to V3

Comments

@camilo02021
Copy link

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'
const app = createApp(Home)
app.use(GoogleMaps).start()"
It is how the documentation says, I think the "use.()" and the "$navigateTo" they conflict.
Any solution for this?

@vallemar
Copy link
Contributor

@camilo02021 you can register plugin as: #1018 (comment)

@camilo02021
Copy link
Author

Thank you it works, it happens only with vue3, In vue2 I can use it by "Vue.use(GoogleMaps)"

@camilo02021
Copy link
Author

camilo02021 commented Apr 10, 2023 via email

@vallemar
Copy link
Contributor

@camilo02021 Yes, this is related to navigation. In the meantime you can declare your components like this, it's totally fine. I think it will be solved with this PR #1036

@rigor789 rigor789 added the V3 Issues related to V3 label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V3 Issues related to V3
Development

No branches or pull requests

3 participants