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

cannot import pane and version is different from documentation

Open pradeepmdk opened this issue 5 years ago • 2 comments
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?

pradeepmdk avatar Apr 03 '20 07:04 pradeepmdk

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.

OceanAirdrop avatar May 11 '20 08:05 OceanAirdrop

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.

zenithlight avatar Jun 23 '20 23:06 zenithlight