react-split-pane
react-split-pane copied to clipboard
Unable to Import Pane
Describe the bug
Whenever I tried to import { Pane} from 'react-split-pane' I got following error.
Module '"../node_modules/react-split-pane"' has no exported member 'Pane'. Did you mean to use 'import Pane from "../node_modules/react-split-pane"' instead?ts(2614)
Is Pane component deprecated ?
I'm using "react-split-pane": "^2.0.3" and "typescript": "~3.7.2"
Yep. There is no Pane in lib/index.js exported.
Import it from "react-split-pane/lib/Pane"
Hi @mohamedajmaltm @enomado @adarshaacharya , are you guys getting any warning after using 2.0.3?
am getting the following warnings
is there any workaround for this, or shall i use the 0.. version of it?
Thanks in advance.
Same error here, there is no type with 'Pane'
Hi @mohamedajmaltm @enomado @adarshaacharya , are you guys getting any warning after using 2.0.3?
am getting the following warnings
is there any workaround for this, or shall i use the 0.. version of it?
Thanks in advance.
I think there is no other option than downgrading the version to v0.x.
Many people may be confused because the docs still show that new version is available. I think author should remove that part.
you can use react-split-pane-next