Open kkseven07 opened 6 years ago
Sorry, my psy abilities are not so strong. Could you provide a bit more context, source code, error as it is, and so on.
Updated the issue, what else I should show? Everything worked with RHL 1.2.9, I know that its pretty old version. I added export default hot(module)(Root)
to my root component according to documentation with v4.
Look like the problem is Babel loader or Babel core. Please delete Babel-core, you probably don’t need it, and update Babel-loader.
It didnt help, babel loader requires installed babel-core. Or is there smth i'm doing wrong?
Look like the problem is babel 5
"babel-core": "^5.8.38", <----- "babel-loader": "^6.4.1", <-----
Please use babel-core: 6X, and babel loader 7X
All our tests are using
"babel-core": "^6.26.0", "babel-loader": "^7.1.2",
That is not the "latest" versions, but quite fresh.
Moved to RHL v4 and got this error. I am a newbie in react and webpack, so you explain how to fix this? Versions: "babel": "^6.5.2", "babel-cli": "^6.9.0", "babel-core": "^5.8.38", "babel-loader": "^6.4.1", "babel-plugin-transform-runtime": "^6.9.0", "babel-preset-es2015": "^6.9.0", "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", "webpack": "^1.9.11",
Here is my webpack code
Error happens when I add
"plugins": ["react-hot-loader/babel"]
to babelrc