Script error. at handleError (webpack-internal:///./node_modules/webpack-dev-server/client/overlay.js:299:58)
时间: 2023-08-26 21:04:46 浏览: 383
Script error通常是由于JavaScript代码中的错误引起的。在引用中提到的文件webpack-dev-server/client/overlay.js的代码中,出现了一个名为handleError的函数。这个函数负责处理错误。可以进一步追踪代码,如引用所示,查看webpack-dev-server/client/index.js文件中的options.catchRuntimeError,可以了解这个参数是如何传递过来的。另外,为了运行webpack,你需要安装Node.js,并且使用Node.js自带的软件包管理工具npm来安装webpack。你可以通过在命令行中输入`node -v`来查看你的Node.js版本,然后使用`cnpm install webpack -g`全局安装webpack,或者使用`cnpm install`局部安装webpack。完成安装后,你可以使用`webpack –version`来查看安装的webpack版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [handleError@webpack-internal:///./node_modules/webpack-dev-server](https://blog.csdn.net/weixin_46525113/article/details/130864747)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [webpack安装配置与常见使用过程详解(结合vue)](https://download.csdn.net/download/weixin_38582909/13129204)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文