Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible peer dependencies w/ React 18 #66

Open
mpeterdev opened this issue May 22, 2023 · 1 comment
Open

Incompatible peer dependencies w/ React 18 #66

mpeterdev opened this issue May 22, 2023 · 1 comment

Comments

@mpeterdev
Copy link
Contributor

both the Near Social and near.org viewers use React 18, but the installed versions of react-files and react-singleton-hook both have peer dependencies of React 17

@ALuhning
Copy link

As per Light-Keeper/react-singleton-hook#479 - recommend bumping version of react-singleton-hook up to 4.0.1. Eliminates the console error in current version of vm: Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17.

Workaround is to put a resolution in package.json:

"resolutions": {
    "react-singleton-hook": "^4.0.1"
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants