schovi/react-iscroll

Unable to find node on an unmounted component.

Closed this issue · 0 comments

×

Unable to find node on an unmounted component.
▼ 5 stack frames were expanded.
invariant
node_modules/react-dom/cjs/react-dom.development.js:57
findCurrentFiberUsingSlowPath
node_modules/react-dom/cjs/react-dom.development.js:4439
findCurrentHostFiber
node_modules/react-dom/cjs/react-dom.development.js:4451
findHostInstance
node_modules/react-dom/cjs/react-dom.development.js:18563
findDOMNode
node_modules/react-dom/cjs/react-dom.development.js:19069
▲ 5 stack frames were expanded.
ReactIScroll._runInitializeIScroll
/home/USER_NAME/Desktop/PROJECTNAME/dist/PROJECT_FILE.min.js:74541
  74538 |     iScroll = _props.iScroll,
  74539 |     options = _props.options; // Create iScroll instance with given options
  74540 | 
**> 74541 | var iScrollInstance = new iScroll(_reactDom2.default.findDOMNode(this), options);**
        | ^  74542 | this._iScrollInstance = iScrollInstance; // TODO there should be new event 'onInitialize'
  74543 | 
  74544 | this._triggerRefreshEvent(); // Patch iScroll instance .refresh() function to trigger our onRefresh event
View compiled
(anonymous function)
/home/jhe76/Desktop/PROJECT/PROJECT_NAME/dist/PROJECT_FILE.min.js:74576
  74573 |   } else {
  74574 |     var timeout = defer === true ? 0 : defer;
  74575 |     this._initializeTimeout = setTimeout(function () {
> 74576 |       return _this4._runInitializeIScroll();
        | ^  74577 |     }, timeout);
  74578 |   }
  74579 | }
npm -v reactiscroll
6.4.1

I have to stick with this version because I don't have the rights to update package in my team.