1.在Visual Studio Code的后端运行yarn serve报错: Error: Watching remote files is not supported
2.分析
是webpack-dev-server出了问题,这是setupWatchStaticFeature函数在3.7.2和3.8.0之间发生了变化引起的问题
3.处理:
1 npm install webpack-dev-server@3.7.2 --save-dev
本文解决在VisualStudioCode环境下,使用yarn serve时出现的错误:Watching remote files is not supported。该问题源于webpack-dev-server的版本更新导致的setupWatchStaticFeature函数变动。解决方案为降级webpack-dev-server至3.7.2版本。
929

被折叠的 条评论
为什么被折叠?



