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

Unable to Import Pane

Open adarshaacharya opened this issue 5 years ago • 8 comments
trafficstars

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"

adarshaacharya avatar Aug 05 '20 17:08 adarshaacharya

Yep. There is no Pane in lib/index.js exported.

enomado avatar Aug 25 '20 15:08 enomado

Import it from "react-split-pane/lib/Pane"

ajmalwashere avatar Sep 05 '20 08:09 ajmalwashere

Hi @mohamedajmaltm @enomado @adarshaacharya , are you guys getting any warning after using 2.0.3?

am getting the following warnings warning

is there any workaround for this, or shall i use the 0.. version of it?

Thanks in advance.

kayesn786 avatar Sep 17 '20 05:09 kayesn786

Same error here, there is no type with 'Pane'

jiyarong avatar Oct 07 '20 03:10 jiyarong

Hi @mohamedajmaltm @enomado @adarshaacharya , are you guys getting any warning after using 2.0.3?

am getting the following warnings warning

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.

adarshaacharya avatar Oct 10 '20 16:10 adarshaacharya

Many people may be confused because the docs still show that new version is available. I think author should remove that part.

adarshaacharya avatar Oct 10 '20 16:10 adarshaacharya

you can use react-split-pane-next

Mustang-Galaxy avatar Sep 19 '22 09:09 Mustang-Galaxy