akiran / akiran/react-slick

Invariant Violation: Unable to find node on an unmounted component

オープン
#1,428 コメント 3 件 リアクション 5 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
11.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

Thrown this error when run the test case if i am using component inside react-slick.
```
import React, { Component } from 'react';
import Slider from 'react-slick';
Class MyComponent extends Component {
render() {
return(

Test1

Test2

Test3


)
}
}
```
Test Case
```
it('Example', () => {
const renderedValue = renderer
.create()
.toJSON();
expect(renderedValue).toMatchSnapshot();
});
```

If i run the test case it shown the following error,
Invariant Violation: Unable to find node on an unmounted component.

This issue will happen only when i add the div elements inside the slider alone. Can any one give some suggestion to resolve this?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。