jhta / vue-trustpilot

Plugin to create Trustpilot widgets in an easy way.
6 stars 3 forks source link

Cannot use import statement outside a module #1

Open JulianMelzig opened 4 years ago

JulianMelzig commented 4 years ago

I am getting this error when I use vue-trustpilot with nuxt. Any ideas ?

Bildschirmfoto 2020-06-16 um 20 21 56

TonyKulbashnyi commented 4 years ago

@JulianMelzig, did you solve the problem? @jhta

Glfover commented 3 years ago

The plugin reported an error when I tried to use it. Has anyone encountered it? image

MichaelBakker1986 commented 2 years ago

Same here { src: '~/plugins/trustpilot.js' ,ssr:false } or { src: '~/plugins/trustpilot.js' ,mode:'client'}

It seems to compile the code for the frontend

kgrosvenor commented 1 year ago

Same

kgrosvenor commented 1 year ago

However i got it working by transpiling vue-trustpilot.

Do this in config

transpile: [
      'vue-trustpilot', ...