admin管理员组

文章数量:1386713

Whenever i try to build my next project, it always fails on Collecting Build Traces with the error below. I have tried multiple solutions, the only "fix" i found was to close all terminals and editors and then try to build and MAYBE it will get rid of the blocker. I would like to know a fix for this, why is this happening. It happens in VS Code, GIT BASH, CMD, basically everywhere i try to run git commit

unhandledRejection [Error: EBUSY: resource busy or locked, copyfile 'D:\Some-Folder\project-next\.next\prerender-manifest.js' -> 'D:\Some-Folder\project-next\.next\standalone\.next\prerender-manifest.js'] {
  errno: -4082,
  code: 'EBUSY',
  syscall: 'copyfile',
  path: 'D:\\Some-Folder\\project-next\\.next\\prerender-manifest.js',
  dest: 'D:\\Some-Folder\\project-next\\.next\\standalone\\.next\\prerender-manifest.js'
}
   Finalizing page optimization  . ELIFECYCLE  Command failed with exit code 1

Oh and the funny thing is, when i close everything and try to build again, it just says a different file is blocked, like wtf

本文标签: typescriptWhy do my next static files keep getting blockedStack Overflow