react-paginate
react-paginate copied to clipboard
Rendering Error
I'm using this package in a framework and I get this error.
Apparently this package does not feel good when used in ESM project. Worked just fine in Remix project + cjs mode. After switching to esm it started to show the same error as on your screenshot.
I was stuck on the same issue and finally got it to work by following these instructions: https://vike.dev/broken-npm-package#react-invalid-component
The first option ('local workaround') did not work for me, but after installing and configuring the vite-plugin-cjs-interop
plugin the pagination component started working.
Not sure if there are alternative ways if you're not using Vite.