react-split-pane icon indicating copy to clipboard operation
react-split-pane copied to clipboard

_this.props.innerRef is not a function [TypeScript]

Open josephjesseyoung opened this issue 6 years ago • 2 comments
trafficstars

Hello, Kudos to the developer, amazing work.

I tried the v2 version as it supports multiple panes. However, as i tried to implement <Pane>, I encountered this error.

TypeError: _this.props.innerRef is not a function in react-split-pane/lib/Pane.js:84

I use react: ^16.6.3 | typescript: ^3.1.6 | react-split-pane: ^2.0.2 | @types/inline-style-prefixer: ^5.0.0

I have zero idea what might cause this problem. Any help/ideas is greatly appreciated! Thankyou

josephjesseyoung avatar Jan 18 '19 07:01 josephjesseyoung

bump. @josephjesseyoung did you figure this out? thanks

lmick002 avatar Dec 30 '19 19:12 lmick002

This happens when I try to wrap Pane in a styled component. Using Pane on its own resolves the issue

nopol10 avatar Oct 18 '20 03:10 nopol10