前記事に
エラー内容
React Hot Loader: It appears that "react-hot-loader/patch" did not run immediately before the app started. Make sure that it runs before any other code. For example, if you use Webpack, you can add "react-hot-loader/patch" as the very first item to the "entry" array in its config. Alternatively, you can add require("react-hot-loader/patch") as the very first line in the application code, before any other imports.
原因
メッセージのreact-hot-loader/patch
の
もrequire("react-hot-loader/patch")
の
対応
webpack.config.js
の
/* エントリポイント */ entry: [ 'react-hot-loader/patch', // 追記 './assets/js/vendor', './assets/js/index'],
以上です。
コメント