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
Deprecation error for DEP0147: fs.rmdir(path, { recursive: true }) is printed to console when running for dev.
Steps to Reproduce
Fetch latest version of Rancher Desktop for development
Run for development
Review console output
Result
Deprecation warning is printed to console
In future versions of Node.js, recursive option will be ignored for fs.rmdir, fs.rmdirSync, and fs.promises.rmdir.
Use fs.rm(path, { recursive: true, force: true }), fs.rmSync(path, { recursive: true, force: true }) or fs.promises.rm(path, { recursive: true, force: true }) instead.
Expected Behavior
Deprecation warning does not appear
Additional Information
It looks like the deprecated usage of rmdir is used in several locations:
We're now using NodeJS 16 to build things; we should update the TypeScript
definition to match. This could have helped with rancher-sandbox#1198.
Signed-off-by: Mark Yen <mark.yen@suse.com>
Rancher Desktop Version
0.7.1
Rancher Desktop K8s Version
NA
What operating system are you using?
macOS
Operating System / Build Version
NA
What CPU architecture are you using?
x64
Windows User Only
No response
Actual Behavior
Deprecation error for DEP0147: fs.rmdir(path, { recursive: true }) is printed to console when running for dev.
Steps to Reproduce
Fetch latest version of Rancher Desktop for development
Run for development
Review console output
Result
Deprecation warning is printed to console
Expected Behavior
Deprecation warning does not appear
Additional Information
It looks like the deprecated usage of
rmdir
is used in several locations:https://nodejs.org/api/deprecations.html#dep0147-fsrmdirpath--recursive-true-
The text was updated successfully, but these errors were encountered: