Open inssein opened 8 months ago
Have you tried wrapping the DndProvider in ClientOnly from https://github.com/sergiodxa/remix-utils/tree/main?tab=readme-ov-file#clientonly I have to use this for @hello-pangea/dnd which is an updated fork of react-beautiful-dnd
It would probably work, but it would defeat the purpose of using Remix at this point because it's part of my root layout.
I feel like this is a bug I will possibly running into the future. For your builds, have you tried having the provider at a component-level as opposed to at the pagelevel, and ensuring that that component is client-only?
Reproduction
Add the
DndProvider
somewhere on the page. Below is an example where I added it to our layout:I have been able to get around this error for now by adding the following to our root file:
System Info
Used Package Manager
npm
Expected Behavior
For it to work. The frustrating part is that it works fine in dev, but is broken in the prod build.
Actual Behavior