You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
readdirSync cannot read files properly when using { recursive: true, withFileTypes: true } #51773
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Activity
richardlau commentedon Feb 15, 2024
Can reproduce in 18.17.1 but not in 18.19.0:
richardlau commentedon Feb 15, 2024
Probably related to #48858
#48698 was included in Node.js 18.19.0.
prfd commentedon Feb 15, 2024
So, all stable versions of electron have a broken readdirSync, that's unfortunate.
https://releases.electronjs.org/
richardlau commentedon Feb 15, 2024
You'll need to discuss that with Electron as we don't control what versions of Node.js they use.
ankit142 commentedon Feb 15, 2024
Try the async approach:
github-actions commentedon May 23, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
github-actions commentedon Jun 22, 2026
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 240 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.