D
D
Denis2018-04-20 12:38:23
JavaScript
Denis, 2018-04-20 12:38:23

React Hot Loader: this component is not accepted by Hot Loader?

Hello. I can not understand the warning from React, which is pouring into the console. It seems that all the settings for Hot Loader are specified in Webpack. And there is a check for module.hot, but this warning constantly arises:
React Hot Loader: this component is not accepted by Hot Loader?
Please check is it extracted as a top level class, a function or a variable.
Click below to reveal the source location:
ƒ VisibleTodosList() {
_classCallCheck(this, VisibleTodosList);
return _possibleConstructorReturn(this, (VisibleTodosList.__proto__ || Object.getPrototypeOf(VisibleTodosList)).apply(th…
Project link on GitHub: https://github.com/denis862008/test

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2018-04-20
@den0820

Use RHL 4+ and forget about these problems.
https://github.com/gaearon/react-hot-loader
https://github.com/gaearon/react-hot-loader/tree/m...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question