@types/react-paginate/index"' has no default export.See original GitHub issue
Please correct me, if this issue does not belong here.
After updating from 5.2.3 => 5.2.4 there is no default export for index.d.ts in @types/react-paginate/
export = ReactPaginate; should be corrected to
export default ReactPaginate;
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Correct! Nevertheless, its better to open an issue there, to ask what is going on
you can get around this by defining your own
- Create new declaration file , for ex: vendor.d.ts
declare module "react-paginate";
- Import ReactPaginate into your component file as below
import ReactPaginate from 'react-paginate'