在Visual Studio Code的后端运行'yarn serve' 报错:' Error: Watching remote files is not supported '

在Visual Studio Code的后端运行yarn serve报错: Error: Watching remote files is not supported

  1. 问题:具体报错代码如下图
    在这里插入图片描述
  2. 分析问题
    通过报错的代码,我们可以看出是webpack-dev-server出了问题,这是setupWatchStaticFeature函数在3.7.2和3.8.0之间发生了变化引起的问题
  3. 解决方案
    npm install [email protected] --save-dev
发布了12 篇原创文章 · 获赞 1 · 访问量 6031

猜你喜欢

转载自blog.csdn.net/shuureina/article/details/99289996