【问题标题】:Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp getting this error来自 chokidar (C:\) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\DumpStack.log.tmp 收到此错误
【发布时间】:2021-09-04 23:03:21
【问题描述】:

来自 chokidar (C:) 的错误:错误:EBUSY:资源繁忙或锁定,lstat 'C:\DumpStack.log.tmp 运行项目时 vue js 项目出错

【问题讨论】:

    标签: vue.js vuejs2


    【解决方案1】:

    每当我使用 Visual Studio (VS) Code 并添加类似于组件的内容时,我都会得到这个

    @Output() somename = new EventEmitter();
    
    • 我让VS Codeauto-import支持模块。 VS Code 没有将 EventEmitter 添加到现有的 @angular/core,而是将新的导入添加到 protractor,这会导致错误。

    EventEmitter() 默认由 VS Code 中的protractor 导入,

    import { EventEmitter } from 'protractor'; // remove this and import from core
    
    import { EventEmitter } from '@angular/core';
    

    注意:如果您收到此错误并且不记得最后一次出现在哪里 已进行更改,请尝试在您的代码中从 protractor 搜索

    【讨论】:

      猜你喜欢
      • 2020-09-08
      • 2021-06-30
      • 2021-08-21
      • 1970-01-01
      • 2022-01-18
      • 2019-08-08
      • 2021-12-21
      • 1970-01-01
      相关资源
      最近更新 更多