-
Notifications
You must be signed in to change notification settings - Fork 54
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
(copy plugin) Error: ENOENT: no such file or directory, chmod <filename> #61
Comments
Happening to me as well. Any ideas for a workaround? |
@gunnartorfis I just copied the source and tweaked a little. Just added try catch block Here |
Same here. For some reason it fails to And for me it fails sporadically, without any pattern, which suggests a race condition. I have |
are you by chance using
If that doesn't work, fork the package and add:
before the copy, to ensure that the directory is created before attempting to copy it. Fyi, that should solve any issues with this package. |
Can someone provide a reproduction repo? I'll try to find the underlying reason 🙌 |
I can provide one, though I'm currently using the fork I created(see the linked PR above), and I haven't seen this issue since. Basically add this to any package's rollup config:
And ensure there is something in the If you need a full repro, I can also provide a repo for that, though again, #71 fixes this issue for me. |
@DanielOrtel thank you, will try locally |
Why is it throwing ENOENT when a file in dist does not exist? Isn't the purpose of this plugin to copy files into dist? The action is not even predictable. It only happens sometimes. However, files are indeed copied into dist but in CI, it always fails because of exit code 1.
The text was updated successfully, but these errors were encountered: