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

test case error - cannot read property 'querySelectorAll' #1830

Closed
ghost opened this issue Jun 30, 2020 · 5 comments · May be fixed by blakegreendev/blakegreen-dev#229
Closed

test case error - cannot read property 'querySelectorAll' #1830

ghost opened this issue Jun 30, 2020 · 5 comments · May be fixed by blakegreendev/blakegreen-dev#229

Comments

@ghost
Copy link

ghost commented Jun 30, 2020

Issue causing release Tag: '0.26.1'

This line causing the issue
https://github.com/akiran/react-slick/blame/bb11613a3c615da499ed3ca8eafdff029902b8f6/src/inner-slider.js#L294

import React from 'react';
import renderer from 'react-test-renderer';
import Slider from 'react-slick';


describe('Testimonial carousel', () => {
  it('renders correctly', () => {
    const tree = renderer.create(<Slider />).toJSON();
    expect(tree).toBeTruthy();
  });
});
@ghost
Copy link
Author

ghost commented Jun 30, 2020

Temporary solution is using 0.25.2

@jvitela
Copy link

jvitela commented Dec 10, 2020

Same problem here with version 0.27.3
Unfortunately versions lower than 0.27.0 are not compatible with React Strict Mode
#1805

@alieslamifard
Copy link

Same problem with 0.27.13

@akiran
Copy link
Owner

akiran commented Jan 11, 2021

Fixed it in [email protected]

@gerisztein
Copy link

@akiran for me it's quite the opposite, it was working before and 0.27.14 broke it 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants