Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rendering Error #497

Open
josekenya opened this issue Sep 12, 2023 · 2 comments
Open

Rendering Error #497

josekenya opened this issue Sep 12, 2023 · 2 comments

Comments

@josekenya
Copy link

I'm using this package in a framework and I get this error.

Screenshot 2023-09-12 at 19-18-49 Screenshot

@atoi
Copy link

atoi commented Oct 11, 2023

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.

@SapuSeven
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants