File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11import React , { Component } from 'react' ;
2- import { hot } from 'react-hot-loader' ;
2+ import { hot } from 'react-hot-loader/root ' ;
33import plotly from 'plotly.js/dist/plotly-with-meta' ;
44import '../src/styles/main.scss' ;
55import brace from 'brace' ; // eslint-disable-line no-unused-vars
@@ -275,4 +275,4 @@ class App extends Component {
275275 }
276276}
277277
278- export default hot ( module ) ( App ) ;
278+ export default hot ( App ) ;
Original file line number Diff line number Diff line change 3939 "@babel/preset-env" : " ^7.3.4" ,
4040 "@babel/preset-react" : " ^7.0.0" ,
4141 "@babel/traverse" : " ^7.3.4" ,
42+ "@hot-loader/react-dom" : " ^16.8.3" ,
4243 "@percy-io/percy-storybook" : " ^2.1.0" ,
4344 "@storybook/react" : " ^4.1.13" ,
4445 "autoprefixer" : " ^9.4.9" ,
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ module.exports = {
3939 } ,
4040 ] ,
4141 } ,
42-
42+ resolve : {
43+ alias : {
44+ 'react-dom' : '@hot-loader/react-dom' ,
45+ } ,
46+ } ,
4347 plugins : [ new webpack . IgnorePlugin ( / v e r t x / ) ] ,
4448 devServer : {
4549 open : true ,
You can’t perform that action at this time.
0 commit comments