Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-bootstrap-table-next doesn't have type script to support import

Tags:

reactjs

After I installed react-bootstrap-table-next, I tried to use "import BootstrapTable from 'react-bootstrap-table-next';" in my tsx file. As example showed in here

I got error message says "Could not find a declaration file for module 'react-bootstrap-table-next'. '../node_modules/react-bootstrap-table-next/lib/index.js' implicitly has an 'any' type."

And I run npm install @types/react-bootstrap-table-next, but couldn't find any.

Does anyone has same issue? or how did you solve the problem?

Ron

like image 310
Ron Avatar asked Nov 27 '22 00:11

Ron


1 Answers

Right now it looks like there are no plans to support Typescript by the team that develop the project.

You can track the develop of the issue here on this issue and maybe you can vote up. I'm also waiting for it.

like image 76
Julio Villane Avatar answered Nov 28 '22 12:11

Julio Villane