Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected token '<' #151

Open
joshuaholmes90 opened this issue Mar 27, 2021 · 9 comments
Open

Unexpected token '<' #151

joshuaholmes90 opened this issue Mar 27, 2021 · 9 comments

Comments

@joshuaholmes90
Copy link

Just installed and this error comes up:

Unexpected token '<'

It's coming from your module code.

Kind Regards,
Josh

@joshuaholmes90 joshuaholmes90 changed the title Hello Unexpected token '<' Mar 27, 2021
@osehmathias
Copy link

Anyone found a fix for this ? @olefirenko

@greenfuzcbd
Copy link

same problem

@Elliot-Alexander
Copy link

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

@Tchoupinax
Copy link

The same error is present yet.

@MakeTotalSense
Copy link

same problem

@ianfortier
Copy link

Anyone found a fix for this ? @olefirenko

#175

@rickwest
Copy link

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

@aosimeon
Copy link

aosimeon commented Aug 4, 2022

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
Copy link

Finally a real solution!, thanks this works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants