GuillaumeLeclerc / vue-google-maps

Google maps component for vue with 2-way data binding
560 stars 650 forks source link

Using RequireJS #76

Open vektor-dev opened 8 years ago

vektor-dev commented 8 years ago

Hi there,

Trying to use this in RequireJS and getting the following error:

Uncaught TypeError: Cannot read property 'use' of undefined vue-google-maps.js:27

Am I missing something? I was doing the map with no bundler with no problems, just as a proof of concept, to get it working in isolation, but now it's ready I've got to move it into an environment that has to be RequireJS and whereas modules like vue and vue-resource are happy in this environment, vue-google-maps doesn't seem to be ok being loaded by require.

Could you help?

Many thanks

GuillaumeLeclerc commented 8 years ago

I have never tried with requireJS maybe another use can help you. Ping me friday if you have not made any progress and I will have some time to help you