![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5SD7hdeFRWh6aA9pOF4H-Uvk2KDetW7IP7HEwkjWhDVnEkyGXpAk3qk1jfui1EQPUxpsYwsHGTfdf0u0XeXQtfSK0qSLtJ7muw1WKMIjpqAP7dque0Hyb0TkrlwfLv2gaLlgbcRdg4c2w/s1600/blame.jpeg)
Encountered a mis-generated code, that this code..
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmiU1GE-2hd3TiEddHzj3BVhiDNvdtixEFzOmpqwIXnSqk96qzbCNbm2JuXRLn2dPrQxdmcwq0WUL1V_jHJuUQqrijGSlznBj4bj9WcKZB5FTPL8KoO6rjhgg9VFshKPcPc5hC9veHNlJ5/s1600/Screen+Shot+2018-03-23+at+5.40.51+PM.png)
..is generated as:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJ18NhWt0XYF1Wg6XVMA5JY4IhFG4ga6kERYw4GhYHBDDvQr27huuCUxG2SBziqAG1xBEqdeedh36RQ-2iYBLwsIS29hBAA2S7La3qEwfbLbwj4TjA_JY2Mi49wowLPAoFX9vPwPkH0ou2/s1600/Screen+Shot+2018-03-23+at+5.43.36+PM.png)
To fix mis-generation of code, remove webpack.HotModuleReplacementPlugin from webpack configuration:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgj7RFozhhK4zvDuFHm9T1m2SW7JlTd8Ff4OlIRXO4hun5wpD2gssx0DGM1vgFNHJ_DcCduG2mGjP4m2mpHYXcDejtOKx2ldRY1knwzMXQgxotP9K0dTJUFZIHSSE-4qTVE_ErJVxdGpalY/s1600/Screen+Shot+2018-03-23+at+5.45.30+PM.png)
I removed the adding of webpack.HotModuleReplacementPlugin from my code above, webpack does not mis-generate the code afterwards.
Happy Coding!
No comments:
Post a Comment