-
Notifications
You must be signed in to change notification settings - Fork 35
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
Node 22: fs.Stats
constructor is deprecated
#246
Comments
RobinTail
changed the title
Node 22: DeprecationWarning: fs.Stats constructor is deprecated
Node 22: Apr 24, 2024
fs.Stats
constructor is deprecated
Same problem nuxt: |
This was an upstream issue (wooorm/import-meta-resolve#27) which is resolved in v4.1.0 of |
Fix already merged via #249 |
https://github.com/unjs/mlly/releases/tag/v1.7.0 For nuxt users, you need a new nuxi release please followup via nuxt/cli#405 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For your information, this warning appears when running
vitest
in Node 22 environment:I managed to figure out that it comes from
mlly
being the dependency ofvitest
:The exact statement causing the issue is not present in the source code of
mlly
, but is generated in its build/distribution byrollup
:Consider upgrading
rollup
and its relatives, or adjust the line of code that may lead to that statement in production.There is also a duplication of
rollup
in your lock file:mlly/pnpm-lock.yaml
Lines 2171 to 2176 in c282adb
The text was updated successfully, but these errors were encountered: