Skip to content

Object is not defined, but it is defined, surely? #78

Closed Answered by GaiusCoffey
GaiusCoffey asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GaiusCoffey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant