无法摆脱未捕获的错误:_registerComponent(...):目标容器不是 DOM 元素
[英] Can't get rid of Uncaught Error: _registerComponent(...): Target container is not a DOM element
This is not a new issue, have been reported by other users too, the problem is I have tried many solutions but I am not able to get rid of this error, and strangely it doesn't cause any problem in running the app, all works fine, then why it throws error, is must be doing some damage to the app which I am not able to figure out.
以下是我尝试过的事情,但没有任何效果
Following are the things I have tried, but nothing works
将 放在
标签的末尾, 在 </body> 标签内的 </html> 标签之后.
Putting <script src="/bundle.js"></script> in the end of </body> tag, after </body> tag inside </html> tag.
添加了 type=text/javascript",这是解决方案之一.
Added type="text/javascript" which was one the solution.
Moreover I have upgraded webpack from version 1 to latest one, and I landed to the this error, I easily come to a conclusion that webpack had some bug or, something?
以下是我收到的错误堆栈..
Following is the error stack I am receiving..
未捕获的错误:_registerComponent(...):目标容器不是 DOM
Uncaught Error: _registerComponent(...): Target container is not a DOM
元素.在 Object._renderNewRootComponent
element. at invariant (12:44) at Object._renderNewRootComponent