Object is not defined, but it is defined, surely? #78
-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
GAH! EG: The init object where I passed my API key was a string not an object. |
Beta Was this translation helpful? Give feedback.
GAH!
Ok, for anybody else who gets caught by this schoolboy error... I had
.use(VueGoogleMaps,{load::import.meta.env.VITE_GOOGLE_MAPS_KEY})
Instead of...
.use(VueGoogleMaps,{load:{key:import.meta.env.VITE_GOOGLE_MAPS_KEY}})
EG: The init object where I passed my API key was a string not an object.