react-split-pane
react-split-pane copied to clipboard
cannot import pane and version is different from documentation
trafficstars
import SplitPane, { Pane } from 'react-split-pane';
this import package not available on requested build npm install react-split-pane@next
which one is correct
i want fix the size of each pane. could you please tell me the correct solution?
I have just raised a related issue here: https://github.com/tomkp/react-split-pane/issues/541 regarding typescript definition files.
For me, I imported the files like this:
// @ts-ignore
import SplitPane from 'react-split-pane/lib/SplitPane';
// @ts-ignore
import Pane from 'react-split-pane/lib/Pane'
and that worked.
It seems like this has been fixed in the source in March. It would be nice if a v2 release could be cut so that we can use it in TS without the workaround.