-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Failed find: ENOENT: no such file or directory, stat '<myFrontendDirectory>\node_modules\.pnpm\chokidar@2.1.8\node_modules\fsevents' #13688
Comments
@mitoihs Can you try giving more specific path for the file which you want to transform. Wildcards in path are supported. |
Hi @AmrutaKawade! Yeah, sure.
and for the task I provide
so my path doesn't have any wildcards. I've read sources of I've used a "workaround" by moving I think that a "quickfix" for that bug would be to "short-circuit" the path if there are no wildcards inside and just go fetch that single file instead of enumerating anything. |
what version of pnpm are you using? I am not able to repro this issue. also its fetching directly single file and not iterating over each file of folder. Can you share repro steps? |
Hi! I use pnpm at highest available version (5.10.4) but it doesn't seem to matter. I've created a repository with minimum code required to reproduce the issue: azure-pipelines.yml is included, please create a pipeline with it in Azure DevOps and check it out . |
Thanks for repro. It really helped |
this is fixed and will be deployed within 2 weeks |
Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: FileTransform
Environment
Agent - Hosted or Private:
Issue Description
FileTransform task ends immediately with an error:
Error: Failed find: ENOENT: no such file or directory, stat '\node_modules.pnpm\chokidar@2.1.8\node_modules\fsevents'
I use pnpm which seems to be important there. It creates symbolic links and in case of that particular link - it is broken (leads to nonexisting file). Still, my configuration of FileTransform task is:
so I'd expect that task to just touch that single file and not iterate over everything under
folderPath
. Even if that error won't cause that task to fail, it is still a big waste of time to enumerate every single file, especially undernode_modules
.Is there a simple workaround to make it work without having to delete
node_modules
or movingconfig.json
somewhere else?Error logs
##[error]Error: Failed find: ENOENT: no such file or directory, stat '\node_modules.pnpm\chokidar@2.1.8\node_modules\fsevents'
The text was updated successfully, but these errors were encountered: