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.

Error: React v16.7 or newer is required.

See original GitHub issue

Error: React v16.7 or newer is required at t.exports /reactn/index.js:1:12795

Issue occured after updating ^16.7.0-alpha.0 > ^16.7.0

Tested

  • Removing / Installing node_packages = 👎
  • Removing yarn lock file = 👎
  • Downgrading to ‘16.7.0-alpha.0’ = 👎

So now am confused what the cause of this issue could be. Could be something locally for me even if i did multiple modules wipe / install runs.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
CharlesStovercommented, Jan 2, 2019

Facebook just did something weird with their React versioning by removing hooks from 16.7 despite them being in alpha. Take the ^ off your version number and try installing again.

0reactions
CharlesStovercommented, Jan 6, 2019

I agree the error is incorrect. I will update the error thrown and the documentation now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React v16.7: No, This Is Not the One With Hooks
React v16.7: No, This Is Not the One With Hooks. December 19, 2018 by Andrew Clark. Our latest release includes an important performance ......
Read more >
React V16.7 TypeError: Object(...) is not a function
To fix the issue downgrade react and react-dom to 16.7.0-alpha.2 as hooks are not available in v16.7 "react": "16.7.0-alpha.2", "react-dom": ...
Read more >
Add support for React 18 #17831 - storybookjs/storybook
Specifically, when I try to update my devDependencies , @storybook/addon-controls throws an error, because it's peerDependencies is set to only ...
Read more >
So What's New in React v16.6?. Introducing ... - Bits and Pieces
If you are familiar with React, you know that component re-rendering can occur if a component props is changed. So imagine if you...
Read more >
React v16 beta is out, suddenly everyone needs to catch UI ...
A few days ago (26/7/2017) the React team released their new beta version introducing ... React v16 beta is out, suddenly everyone needs...
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