New to Typescript and trying to incorporate a splitter into my project. I'm utilizing SplitPane from "react-split-pane/lib/SplitPane" and Pane from "react-split-pane/lib/Pane" in my Typescript project, but encountering an error:
Could not find a declaration file for module 'react-split-pane/lib/Pane'. 'C:/.../node_modules/react-split-pane/lib/Pane.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-split-pane` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-split-pane/lib/Pane';`ts(7016)
Although it is functioning correctly without any issues, the error persists. The recommendation to try '@types/react-split-pane' is no longer viable as the package has been deprecated.
As mentioned in comments, I imported it as follows:
import SplitPane from "react-split-pane/lib/SplitPane";
import Pane from "react-split-pane/lib/Pane";
Any suggestions on how to resolve this error?
English is not my native language so there may be mistakes present.
Here is a link to my splitpane module: