question-mark

Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@types/react-paginate/index"' has no default export.

See original GitHub issue

Issue Description

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;

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
matheus1lvacommented, Aug 24, 2018

Correct! Nevertheless, its better to open an issue there, to ask what is going on

0reactions
anoopmundathancommented, Nov 15, 2018

you can get around this by defining your own

  1. Create new declaration file , for ex: vendor.d.ts
declare module "react-paginate";
  1. Import ReactPaginate into your component file as below
import ReactPaginate from 'react-paginate'
Read more comments on GitHub >

github_iconTop Results From Across the Web

node_modules/@types/react/index"' has no default export
Trying to convert a React app over into Typescript and running into strange errors. node_modules/@types/react/index"' has no default export.
Read more >
react-typescript module build : has no default export - Reddit
I'm trying to build a react-typescript module. But whenever I try to build that, it gives me : (plugin rpt2) Error: /home/maifee/Desktop/react- ...
Read more >
react-select-async-paginate - npm
AsyncPaginate is an alternative of Async but supports loading page by page. It is wrapper above default react-select thus it accepts all ...
Read more >
ngx-pagination v6.0.1 - GitHub Pages
Default is true . autoHide [ boolean ] If set to true , the pagination controls will not be displayed when all items...
Read more >
Swiper React Components
By default Swiper React uses core version of Swiper (without any additional modules). If you want to use Navigation, Pagination and other modules,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found