guruahn / vue-google-oauth2

🔌 Handling Google sign-in and sign-out for Vue.js applications
MIT License
184 stars 55 forks source link

Unexpected token 'export' #46

Closed caobaloc12 closed 3 years ago

caobaloc12 commented 4 years ago

Describe the bug SyntaxError: Unexpected token 'export' after nuxt app compiled

To Reproduce Steps to reproduce the behavior:

  1. Install package and create a plugin: 'vue-google-oauth2.js'
  2. Include the plugin in nuxt.config.js
  3. Wait for nuxt app compile successfully
  4. Access nuxt app on browser

Expected behavior Nuxt app running without error

Screenshots image

**Desktop

brightchip commented 3 years ago

DId you figure out Edit: You just need move the plugin into client only

skysxu commented 3 years ago

DId you figure out Edit: You just need move the plugin into client only

this help me to solve the problem i had like the OP