我正在使用webpack 4.29.6
版本。
这是我正在运行的命令
webpack-dev-server --mode development --open --hot
我在控制台中遇到两个错误。
Uncaught DOMException: Failed to execute 'createShadowRoot' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.
at init (chrome-extension://kacljcbejojnapnmiifgckbafkojcncf/include.preload.js:442:39)
at chrome-extension://kacljcbejojnapnmiifgckbafkojcncf/include.preload.js:589:29
bundle.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
localhost/:1 Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at showNeg.js:241
at XMLHttpRequest.onDefaultReadyStateChangeHandler (showNeg.js:311)
我做错什么了吗? 预先感谢
答案 0 :(得分:1)
如果您的浏览器中安装了任何添加阻止程序,请禁用它们并运行该应用程序。您将不会得到这些错误。