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.

Incompatible with React 16 beta

See original GitHub issue

The following error crashes the app when using React 16 beta.

React caught an error thrown by Provider. You should fix this error in your code. Consider adding an error boundary to your tree to customize error handling behavior. See https://fb.me/react-error-boundaries for more information.

Error: null

The error is located at: 
    in Provider

The error was thrown at:

Other error messages that might be relevant:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

invariant.js?c115:44 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.

By removing react-redux or downgrading to React 15.x it works correctly.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:25 (20 by maintainers)

github_iconTop GitHub Comments

10reactions
mnicolecommented, Oct 17, 2017

in case it helps anyone in the future, i just upgraded to react 16 and was using react-redux, react-router and react-router-redux and getting the same error. i had to use the @next version of react-router-redux to resolve it.

2reactions
sebmarkbagecommented, Jul 29, 2017

We really should have this thread on the react repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React / React-DOM package dependency conflict
I think you are using the latest Beta release of npm v7. It's mentioned in the Error message as well. npm ERR! Fix...
Read more >
React v16.13.0 – React Blog
Today we are releasing React 16.13.0. It contains bugfixes and new deprecation warnings to help prepare for a future major release.
Read more >
9.0.0-beta.1: Incompatible types/"Type […] is not assignable ...
There appears to be a bug in the TypeScript typings for version 9.0.0-beta.1 that causes the type coming out of useSpring() to be...
Read more >
7 things about React 16 your team should know - Pusher Blog
1. React 16 is backwards compatible. Unlike the rewrite of Angular.js, for example, React 16 maintains the exact same public API as in...
Read more >
Xcode unsupported iOS version afte… - Apple Developer
Hello everyone, after I've updated my iPhone to iOS beta version 14.5 , Xcode cannot run my app. My Xcode is updated to...
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