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 #8

Open
CyrilDebon opened this issue Feb 26, 2020 · 2 comments
Open

Navigator is not defined #8

CyrilDebon opened this issue Feb 26, 2020 · 2 comments

Comments

@CyrilDebon
Copy link

Hi,
I tried to follow the nuxt usage of the component and made it worked and custom perfectly but when I want to refresh my page, I got a navigator is not defined. I'm working on nuxt and tried to follow the four steps but I don't really understand how to execute the step 3 and 4 of the guide. It's really sad that i have to give up on this well made and documented component !

@cobbie
Copy link

cobbie commented Feb 27, 2020

Ran into the exact same issue, also using Nuxt. I think this identifies the issue:

https://stackoverflow.com/questions/56319250/fixing-referenceerror-navigator-is-not-defined

You are trying to run code intended for a browser on the server

@olekon
Copy link

olekon commented Mar 30, 2020

This helped me NightCatSama/vue-slider-component#114 (comment)

But I had to wrap the component like this

<client-only>
            <vue-range-component
                :value="value"
                :min="min"
                :max="max"
                @input="onInput"
            />
</client-only>

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

3 participants