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

Error: React.createElement: type is invalid #1

Closed
ChromeQ opened this issue Apr 6, 2017 · 0 comments
Closed

Error: React.createElement: type is invalid #1

ChromeQ opened this issue Apr 6, 2017 · 0 comments

Comments

@ChromeQ
Copy link

ChromeQ commented Apr 6, 2017

I found your repo from remix-run/react-router#4717 (comment) and wanted to check out your solution, and I'm getting this error on your project when I do the following:

git clone https://github.com/supasate/test-react-router-redux.git
npm install
npm start

In the browser I get the following:

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.

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.
at invariant (invariant.js:44)
at ReactCompositeComponentWrapper.instantiateReactComponent [as _instantiateReactComponent] (instantiateReactComponent.js:77)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:367)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
at Object.mountComponent (ReactReconciler.js:46)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:371)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
at Object.mountComponent (ReactReconciler.js:46)
at mountComponentIntoNode (ReactMount.js:104)
at ReactReconcileTransaction.perform (Transaction.js:140)

Any ideas what may have changed? I am really keen on following the discussion on the thread about getting redux devTools working with the new version of the react-router-redux.
Also, I notice there is talk of using push to navigate, do your changes allow using <Link to="/"> to work with devTools too?

@ChromeQ ChromeQ closed this as completed Apr 29, 2020
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

1 participant