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

Error only in development side #689

Open
plezploz opened this issue Apr 13, 2021 · 4 comments
Open

Error only in development side #689

plezploz opened this issue Apr 13, 2021 · 4 comments

Comments

@plezploz
Copy link

plezploz commented Apr 13, 2021

Describe the bug
There is a error in the console only in development. This isn't that big of a deal but is kinda annoying.

To Reproduce
Steps to reproduce the behavior:
React code:

import Carousel, { Dots } from '@brainhubeu/react-carousel';
import '@brainhubeu/react-carousel/lib/style.css';
import { useState } from "react";

function ImageCarousel({ images }) {
    const [value, setValue] = useState(0);

    const onChange = value => {
        setValue(value);
    };  
    
    return (
        <div>
            <Carousel
                plugins={['fastSwipe']}
                value={value}
                slides={images}
                onChange={onChange}
            />
            <Dots value={value} onChange={onChange} number={images.length} />
        </div>
    );
};

export default ImageCarousel;

Expected behavior
No errors

Screenshots
image
Environment
Chrome, desktop

@mcmxcdev
Copy link
Contributor

Experiencing this as well.

@GuySpotnix
Copy link

+1

@ebaldacchino
Copy link

+1

Fixing the issue is way over my head, but based on the JS stack, the error's showing on line 69 inCarousel.js, which is:

setStrategies(strategies)

(anonymous) @ recoil.js:1431
replaceState @ recoil.js:1576
(anonymous) @ recoil.js:756
B @ recoil.js:611
et @ recoil.js:756
anonymous) @ recoil.js:2100
wi @ Carousel.js:69

@vaporwavie
Copy link

This will potentially get fixed by #724

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

5 participants