gpt4 book ai didi

node.js - 发生未处理的异常 : D:\workspace-angular\demoapp1 contains both . browserslistrc 和 browserslist

转载 作者:行者123 更新时间:2023-12-04 01:18:35 27 4
gpt4 key购买 nike

当我服务 angular 项目出现以下错误。
[发生未处理的异常:D:\workspace-angular\demoapp1 包含 .browserslistrc 和 browserslist
有关更多详细信息,请参阅“C:\Users\TTLJSR\AppData\Local\Temp\ng-05qxjF\angular-errors.log”。][1]

    at D:\workspace-angular\demoapp1\node_modules\browserslist\node.js:333:15
at eachParent (D:\workspace-angular\demoapp1\node_modules\browserslist\node.js:49:18)
at Object.findConfig (D:\workspace-angular\demoapp1\node_modules\browserslist\node.js:301:20)
at Function.loadConfig (D:\workspace-angular\demoapp1\node_modules\browserslist\node.js:219:37)
at browserslist (D:\workspace-angular\demoapp1\node_modules\browserslist\index.js:411:31)
at new BuildBrowserFeatures (D:\workspace-angular\demoapp1\node_modules\@angular-devkit\build-angular\src\utils\build-browser-features.js:18:34)
at generateWebpackConfig (D:\workspace-angular\demoapp1\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:37:34)
at async generateBrowserWebpackConfigFromContext (D:\workspace-angular\demoapp1\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:138:20)
at async Object.generateI18nBrowserWebpackConfigFromContext (D:\workspace-angular\demoapp1\node_modules\@angular-devkit\build-angular\src\utils\webpack-browser-config.js:87:20)
at async setup (D:\workspace-angular\demoapp1\node_modules\@angular-devkit\build-angular\src\dev-server\index.js:76:47) ```





[1]: /image/e9i18.png

最佳答案

删除较新的文件,[browserslistrc]
这两个文件看起来完全相同。当我将项目更新到最新的 Angular 版本,然后从备份位置恢复项目时,我遇到了这个问题。删除较新的文件 [browserslistrc] 后,此错误消失了。我认为这也是 Mahendra Kumar 的意思。

关于node.js - 发生未处理的异常 : D:\workspace-angular\demoapp1 contains both . browserslistrc 和 browserslist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62950924/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com