How to use in nuxt3
See original GitHub issueI tried to use vue-google-maps in nuxt3.
plugins/vueGoogleMaps.ts
import VueGoogleMaps from '@fawmi/vue-google-maps'
export default defineNuxtPlugin((app) => {
app.vueApp.use(VueGoogleMaps, {
load: {
key: "my-api-key",
language:'ja'
}
});
});
But it doesn’t work.
When I open map page, the message below show;
[vite dev] Error loading external "/Users/myName/Desktop/nuxt-vuetify-sample/node_modules/@fawmi/vue-google-maps/src/utils/env.js".
Could you show how to use in nuxt3?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Nuxt 3 first steps. - ITNEXT
Now, during my research, I found a lot of tutorials on how to connect Nuxt 3 with new modules like i18n, Algolia, or...
Read more >How to use Vuetify with Nuxt 3 - Cody Bontecou
Get Vuetify to work with Nuxt 3 with this quick tutorial. ... Start by creating a Nuxt 3 project if you do not...
Read more >Getting started with Nuxt 3 - Section.io
Nuxt 3 is a Hybrid Vue Framework that allows us to use Vue.js and, most importantly, Vue.js 3 to build server-side rendered applications....
Read more >How to use Select2 in Nuxt3 - Stack Overflow
I have spent few days to do this, but failed. Finally I made my own npm package. Think might be useful for others,...
Read more >nuxt3 examples - CodeSandbox
Learn how to use nuxt3 by viewing and forking nuxt3 example apps on CodeSandbox.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, I got it working with the following configuration (
@fawmi/vue-google-maps": "^0.9.72
):nuxt/nuxt.config.ts
nuxt/plugins/vueGoogleMaps.ts
nuxt/pages/example.vue
It imports style sheets from google fonts, which violates the EU’s GDPR privacy act. Has anyone figured out, if self-hosting the respective fonts will prevent the module from downloading fonts?