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

Beta 5 throwing Failed prop type: Cannot read property 'isValidElementType' of undefined #6445

Closed
paradoxxxzero opened this issue Oct 31, 2018 · 2 comments

Comments

@paradoxxxzero
Copy link

Since I upgraded to beta-5 I keep getting this error with webpack for some reason at this line: https://github.com/ReactTraining/react-router/blob/master/packages/react-router/modules/Route.js#L132

Upon further inspection, in the compiled file I have:

/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_is__WEBPACK_IMPORTED_MODULE_9__);

// ...

if (props[propName] && !react_is__WEBPACK_IMPORTED_MODULE_9___default.a.isValidElementType(props[propName])) {

and react_is__WEBPACK_IMPORTED_MODULE_9___default.a is undefined but react_is__WEBPACK_IMPORTED_MODULE_9__.isValidElementType exists.

@mjackson
Copy link
Member

Related discussion here: #6209 (comment)

@paradoxxxzero
Copy link
Author

I confirm it now works with beta 6.
Thanks!

@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants