无法摆脱未捕获的错误:_registerComponent(...):目标容器不是 DOM 元素 [英] Can't get rid of Uncaught Error: _registerComponent(...): Target container is not a DOM element

查看:20
本文介绍了无法摆脱未捕获的错误:_registerComponent(...):目标容器不是 DOM 元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是一个新问题,也被其他用户报告过,问题是我尝试了很多解决方案但我无法摆脱这个错误,奇怪的是它在运行时没有造成任何问题应用程序,一切正常,那么为什么它会抛出错误,一定是对应用程序造成了一些我无法弄清楚的损坏.

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

  1. 放在 标签的末尾, 在 </body> 标签内的 </html> 标签之后.

  1. 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.

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆