react-modal-dialog icon indicating copy to clipboard operation
react-modal-dialog copied to clipboard

Uncaught Error: Element type is invalid: expected a string

Open weichenghsu opened this issue 6 years ago • 0 comments

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`.

weichenghsu avatar Nov 18 '17 01:11 weichenghsu