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.

React issue in 2.2.3 -> 2.4.0 update

See original GitHub issue

Getting this classic gem w/next.js:

Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.

Related to (?) #278

I tried setting config.resolve.alias.react/-dom but it doesn’t seem to have any affect.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jpdrivercommented, Jan 26, 2022

@frattaro can i ask you to try v3.0.0-rc1? This new major uses both React 17 and a replacement for react-simple-code-editor under the hood.

you can install using

yarn add react-live@next

i’d be really grateful for any feedback. thank you! 🙇🏻‍♂️

0reactions
jpdrivercommented, Jan 26, 2022

great! thank you so much for reporting back 😄

i’d like to wait a little longer for any other feedback before marking that RC as the latest stable version, but please feel free to keep using it and testing it in the meantime.

it’s probably unlikely to change between now and the official release

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve peer dependency error: The package react ...
I was facing the same issue and I used following things: 1. Update the react version: "react": ^16.2.0" in package.json file 2. Delete...
Read more >
Changelog | Meteor API Docs
Update postcss package to avoid issues with Browserslist and caniuse-lite . ... meteor create my-app now creates by default a project using React....
Read more >
react-native-reanimated - npm
More powerful alternative to Animated library for React Native.. Latest version: 2.13.0, last published: a month ago.
Read more >
React-Bootstrap · React-Bootstrap Documentation
The most popular front-end framework, rebuilt for React.
Read more >
release - Quarkus
Final fixes CVE-2022-2466 and is a mandatory upgrade for anyone exposing GraphQL ... 2.2.3.Final is a maintenance release for our 2.2 release train....
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