olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
505 stars 258 forks source link

Unexpected token '<' #151

Open joshuaholmes90 opened 3 years ago

joshuaholmes90 commented 3 years ago

Just installed and this error comes up:

Unexpected token '<'

It's coming from your module code.

Kind Regards, Josh

osehmathias commented 2 years ago

Anyone found a fix for this ? @olefirenko

greenfuzcbd commented 2 years ago

same problem

Elliot-Alexander commented 2 years ago

Same here, trying to another component with Jest but can't import the component without this.

Tchoupinax commented 2 years ago

The same error is present yet.

MakeTotalSense commented 2 years ago

same problem

ianfortier commented 2 years ago

Anyone found a fix for this ? @olefirenko

https://github.com/olefirenko/vue-google-autocomplete/pull/175

rickwest commented 2 years ago

Adding the package to transformIgnorePatterns in Jest config solved this for me 👍🏻

aosimeon commented 2 years ago

I had this problem after installing it in nuxt. I solved it by editing the build config in my nuxt.config.js file. I added the name of the package to the transpile property. I hope this helps.

build: { transpile: ['vue-google-autocomplete'], },

leosalass commented 1 month ago

Finally a real solution!, thanks this works!