DEV Community

Discussion on: Create Your Own Vue3 Google Maps Component and Deploy to Mobile with Ionic Framework & Capacitor

Collapse
 
quonn77 profile image
Alessio Iannone

Can you please share whole source code of project?... I am not new to development, but just new to Vue and Ionic (this is my first day), I was wondering why my ionic server is not able to found the GMap module, probably there is something that I need to know, but if I can take a look from the whole source code I could easily find the solution.
Regards

Collapse
 
quonn77 profile image
Alessio Iannone

By having added GMap.vue under views folder of the Vue project, for me the problem was to include the GMap by referencing the file adding ./ to the import so
the wrong import was
import GMap from "views/GMap.vue";

The right import is
import GMap from "./views/GMap.vue";

I was used that relative import doesn't need to be referenced with ./
....