BetterTyped/react-zoom-pan-pinch

Not working with Docusaurus 3.x.x

monica-m-ps opened this issue · 1 comments

Describe the bug
I'm using Docusaurus 3.x.x with Node 18. As soon as I install this plugin, I get the error:

code: 'ERR_REQUIRE_ESM'

To Reproduce
Steps to reproduce the behavior:

  1. yarn add react-zoom-pan-pinch.
  2. yarn run build.

Expected behavior
When building yarn packages, no error should occur.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Mac

Closing this issue as I found a solution if you're using yarn

    "react-zoom-pan-pinch/react": "^18.2.0",
    "react-zoom-pan-pinch/react-dom": "^18.2.0"
  },