codesandbox/sandpack

Transitive dependancy conflict with React 18

Closed this issue · 1 comments

Bug report

Packages affected

  • sandpack-client
  • sandpack-react

Description of the problem

sandpack-react requires the devDependancy "@testing-library/react-hooks": "8.0.1"
And @testing-library/react-hooks requires "react": "^16.9.0 || ^17.0.0".

Turns out the library @testing-library/react-hooks itself is depreciated and they recommend using '@testing-library/react' instead.

Ref: https://github.com/testing-library/react-hooks-testing-library?tab=readme-ov-file#a-note-about-react-18-support

This causes trouble in resolving dependency for React 18.

Ignore this. I was setting it up wrong.
(Still, the depreciated dependancy might be worth having a look into)