sanity-plugin-order-documents icon indicating copy to clipboard operation
sanity-plugin-order-documents copied to clipboard

Error: Cannot have two HTML5 backends at the same time.

Open j2is opened this issue 4 years ago • 5 comments

I get an error saying the Order Documents Plugin Crashed, and the error says that you cannot have two HTML backends at the same time. I don't know if this is actually a plugin problem or something I've misunderstood?

j2is avatar May 13 '21 17:05 j2is

I think it might have to do with this? https://github.com/react-dnd/react-dnd/issues/186

j2is avatar May 13 '21 17:05 j2is

Interesting. Are you using react-dnd as a dependency? Or perhaps you're using another plugin that uses it? I'll look into the thread you linked to see if I can work out a solution.

BretCameron avatar May 14 '21 12:05 BretCameron

I'm struggling to recreate this issue. I've tried using two plugins which both have react-dnd and react-dnd-html5-backend, and even silly patterns like this:

<DndProvider backend={HTML5Backend}>
  <DndProvider backend={HTML5Backend}>
    {/*  */}
  </DndProvider>
</DndProvider>

So far, everything seems to work fine. Could you possibly share an example repo with the issue?

BretCameron avatar May 14 '21 13:05 BretCameron

Thanks Bret, I'll send you an invite to a repo with this as a minimum reproducible issue just to rule everything else out

j2is avatar May 19 '21 19:05 j2is

I'm seeing this as well. At first I was getting duplicate list items and other glitching (I was suspecting React keys were not unique), then saw the html5 backend error in the console (Firefox). Page reload seems to have temporarily fixed.

Still investigating.

robations avatar Apr 06 '22 15:04 robations