vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Standalone version gives out "Uncaught ReferenceError: require is not defined"

Open rstoenescu opened this issue 8 years ago • 4 comments

Hi,

First of all great work with this module! Tried the standalone version and got this error: Uncaught ReferenceError: require is not defined.

rstoenescu avatar Jun 19 '16 14:06 rstoenescu

Do you have any more information than this ?

GuillaumeLeclerc avatar Jun 19 '16 16:06 GuillaumeLeclerc

Q and Lodash are available before including a script tag pointing to file from vue-google-maps/dist/vue-google-maps.js. Unfortunately can't tell which line and column the error is at since the file indicated is minified. Does this help?

rstoenescu avatar Jun 19 '16 16:06 rstoenescu

Thank you for the additional information

I searched this file https://github.com/GuillaumeLeclerc/vue-google-maps/blob/master/dist/vue-google-maps.js

And there is no require in the whole file. Where did you got your vue-google-maps.js ?

GuillaumeLeclerc avatar Jun 19 '16 18:06 GuillaumeLeclerc

@GuillaumeLeclerc how did you get the package on CDNjs? I think they got the wrong file on the CDN. (Should be dist/vue-google-maps.js)

xkjyeah avatar Nov 01 '16 01:11 xkjyeah