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

Navigator is not defined? #28

Open
JenuelDev opened this issue Mar 9, 2021 · 1 comment
Open

Navigator is not defined? #28

JenuelDev opened this issue Mar 9, 2021 · 1 comment

Comments

@JenuelDev
Copy link

image
image

@GELELOIC
Copy link

Hello,

The plugin is not compatible with basic nuxt.

You have to go through a plugin and deactivate the ssr.

Example :

Plugin (name : vue-range-component.plugin.js) :

import Vue from 'vue'
import VueRange from 'vue-range-component'

Vue.component('vue-range', VueRange);

Nuxt.config.js :

  plugins: [
    { src: '~/plugins/vue-range-component.plugin.js', ssr: false }
  ],

In your file .vue :
<vue-range ref="slider" v-model="value"></vue-range>
and import style :
import 'vue-range-component/dist/vue-range-slider.css'

It works for me.

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

2 participants