-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel 2: EPERM: operation not permitted, rename '...' -> '...' #4955
Comments
Same for me (Windows 10 Home, parcel: ^2.0.0-beta.1). Currently I get this every time I change the file, I also deleted the cache and dist folders and restarted parcel, still no luck :( Every change after start leads to this error. |
Same problem here, if i remove --no-cache flag, scss partials are not reflected but when i have this flag then every time I make change same error occurs |
I dont know if this is a smart solution or not but, this method is working for me for now. the error seems to be gone and all my js and scss including scss partials are compiling just fine. |
Any progress? :) I am using
For me, adding Downgrading to My currently best "solution" is to simply ignore the 'EPERM' errors, because they don't abort the |
Same issue for me, "🚨 Error: EPERM: operation not permitted, rename". "devDependencies": {
"@parcel/transformer-sass": "^2.0.0-alpha.3",
"parcel": "^2.0.0-beta.1",
"sass": "^1.32.2"
},
|
I don't understand, is there no solution? Should go back to Parcel V1? |
See my comment above. Simply ignore the errors (because for me they don't actually cancel or corrupt the build process), or downgrade to |
+1 on this issue. |
This is intentional, the cache is also used to send data between threads |
@mischnic Thanks! That's good to know, might be nice to note that in the documentation for the CLI, since the behavior differs from v1, and because (IMO) it's somewhat surprising. (Sorry for the off topic comment) |
Getting this in serve mode, which stops working and requires a restart (edit: as in, Ctrl+C and run it again). It feels like v2 isn't ready enough for v1 to be marked deprecated. |
Just in case anyone's restarting their computer to fix this, I found that closing my terminal and opening a new one fixed the issue. Still annoying tho. |
Any progress on this? |
(Perhaps someone else could lend some credence to one the following combinations of workarounds as well, but ...) The combination of adding the ...
... has both precluded these EPERM errors from occurring (#4955) AND a problem regarding watching changes in included sass partials. However, errors regarding partial updates after an error (#6025) are still evident. [...]
"watch-scripts": "parcel watch \"path/to/my/entry.scss\" --public-url . --no-autoinstall --log-level verbose --no-cache --no-source-maps" Details: |
Can someone provide a code sample and instructions on how to reproduce this error consistently? |
From my experience with this bug, it's quite inconsistent, it just kind of randomly happens. So I'm not sure if someone will even be able to make a repro for this issue. I've been trying to make a repro for this but it looks like the smaller a project is, the less chances are for it to happen. Just deving on a medium or big sized project on windows should be enough for it to happen after some time though AFAIK. Parcel isn't the first to have this issue, a lot of node projects have had their fair share of EPERM issues: microsoft/TypeScript#29407 It looks like Parcel must be locking onto cache files and then trying to modify them or something like that? |
I suspect that the reason that this happens on Windows only is that using $ ls
a.js b.js
$ mv a.js b.js
$ ls
b.js
(This issue is about |
I found one particular way to create this problem consistently with the following <!doctype html>
<html lang="en">
<head>
<script>
// script tag
</script>
</head>
<body>
</body>
</html> Then run The EPERM happens on the cache blob file corresponding to the script tag, which always is something like However this no longer happens on both However this doesn't seem to quite match what others have been experiencing so there are probably other bugs causing this too. |
Confirmed that I have run into this again for different unknown reasons |
I get the same error with 2.0.1, practically every time I change an HTML file. This is unusable. |
same error, Windows 11 (windows defender is off) When saving html file - got error @parcel/compressor-raw: EPERM: operation not permitted, rename |
I have the same issue on parcel 2.0.1. Happens maybe one out of five edits and I'm forced to Ctrl+C and restart Parcel. Makes for a unusable workflow. Only noticed it happening when editing a HTML file. |
I am still getting this error. Ever since I updated Parcel. This happens regardless of whether I am making changes to html or scss files. @parcel/compressor-raw: EPERM: operation not permitted, rename 'C:\Users\nicho\Desktop\projects\codecademy\Alpine\dist\index.b10d73a7.css.119072295' ->
'C:\Users\nicho\Desktop\projects\codecademy\Alpine\dist\index.b10d73a7.css' "devDependencies": {
"@parcel/transformer-sass": "^2.2.1",
"parcel": "^2.2.1",
"sass": "^1.49.7"
}
|
🐛 bug report
When modifying files, there's sometimes this error that is thrown:
The error is quite inconsistent.
The text was updated successfully, but these errors were encountered: