Not working with Docusaurus 3.x.x
monica-m-ps opened this issue · 1 comments
monica-m-ps commented
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:
yarn add react-zoom-pan-pinch
.- yarn run build.
Expected behavior
When building yarn packages, no error should occur.
Desktop (please complete the following information):
- OS: [e.g. iOS] Mac
monica-m-ps commented
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"
},