question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update react peerDependencies for React 18

See original GitHub issue

Could we update the peerDependencies to allow React 18?

  "peerDependencies": {
--    "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1",
++    "react": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1 || ^18.0.0",
--    "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1"
++    "react-dom": "^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1  || ^18.0.0"
  },

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
armandabriccommented, May 9, 2022

🚀 The support of React 18 is release in v15.0.0. Please give feedback if you have issue with it. Thanks for @markhughes for the PR.

0reactions
markhughescommented, May 9, 2022

Hey @armandabric I’ve put together the change and even added smoke tests (works fine): https://github.com/algolia/react-element-to-jsx-string/pull/729

thanks for the idea!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React 18 is not supported as a peer dependency #5205 - GitHub
Possible solution. Update "peerDependencies" in package.json to support React 18.
Read more >
create-react-app dependency version issues with React 18
Update. The problem has been fixed with the latest update of create-react-app . Now it creates a project without any problem.
Read more >
Add React 18 as a peer dependency - Morioh
This tutorial will show you what CRUD means and what each individual operation in a CRUD app does. Learn how create, read, update,...
Read more >
you must install peer dependencies yourself Code Example
requires a peer of postcss@^8.1.0 but none is installed. You must install peer dependencies yourself. ... react-select@3.1.1 requires a peer of react-dom@^16.8.0 ...
Read more >
React Testing Library - npm
This library has peerDependencies listings for react and ... Warning: An update to ComponentName inside a test was not wrapped in act(...).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found