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

Uncaught Error: Element type is invalid: expected a string #58

Open
weichenghsu opened this issue Nov 18, 2017 · 0 comments
Open

Uncaught Error: Element type is invalid: expected a string #58

weichenghsu opened this issue Nov 18, 2017 · 0 comments

Comments

@weichenghsu
Copy link

Not sure why this popular package could not be executed correctly with react 16

	"react": "^16.1.0"

	import * as React from 'react';
	import ReactDOM from 'react-dom';
	import Modal from 'react-modal';

	invariant.js:42 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, or you might have mixed up default and named imports.

	Check the render method of `Index`.
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