We are experiencing a similar problem with Next.js 15. We have tried with both React 18 and 19.
One thing we are doing as a workaround is to copy this entire project inside our components folder and let Next.js bundle it. That seems to work, which seems to indicate that this is a problem with how the project is built and published.
We tried to fiddle a bit with the Vite config but weren't able to come up with a configuration that solved the issue.
👍🏽 on this!
We are experiencing a similar problem with Next.js 15. We have tried with both React 18 and 19.
One thing we are doing as a workaround is to copy this entire project inside our
components
folder and let Next.js bundle it. That seems to work, which seems to indicate that this is a problem with how the project is built and published.We tried to fiddle a bit with the Vite config but weren't able to come up with a configuration that solved the issue.
CC: @adminy