Open mateusser opened 6 years ago
Hello, I'm trying to use the maps inside an electron-vue project, but when I try to:
import * as VueGoogleMaps from 'vue2-google-maps'
The console shows this error:
I found something related in this issue #322 using the fix
import * as VueGoogleMaps from 'vue2-google-maps/src/main'
But the error in this is case is the following:
Maybe is something with Webpack and vue-loader, but I'm trying to find it with no success. If there is a fix I would appreciate the sharing.
Thanks
I think you need to whitelist the package in your webpack.renderer.config.js
webpack.renderer.config.js
let whiteListedModules = ['vue', 'vue2-google-maps']
Thanks @henriquebremenkanp, your solution worked for me.
Hello, I'm trying to use the maps inside an electron-vue project, but when I try to:
The console shows this error:![image](https://user-images.githubusercontent.com/5655980/42525531-c5bba396-8449-11e8-9d23-38f6828d901b.png)
I found something related in this issue #322 using the fix
But the error in this is case is the following:
Maybe is something with Webpack and vue-loader, but I'm trying to find it with no success. If there is a fix I would appreciate the sharing.
Thanks