officert / vue-calendly

Vue component for https://calendly.com
MIT License
7 stars 6 forks source link

Using with Nuxt #2

Open andyfensham opened 3 years ago

andyfensham commented 3 years ago

I am trying to use your component with Nuxt, but am getting an error 'Window' not defined. Do you know how I will be able to use it with nuxt. Thanks

fowkswe commented 3 years ago

Check this @andyfensham https://stackoverflow.com/questions/54979644/window-is-not-defined-in-nuxt-js

FollowJack commented 2 years ago

In nuxt.config.js > plugins section add

  // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
  plugins: [
    // for calendly integration
    { src: '@/plugins/vue-calendly', mode: 'client' },
  ],