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
(node:4075381) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
at Object.createResolve (/.../node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js:146:25)
at /.../node_modules/ts-node/src/index.ts:1494:7
at Object.onceFn [as getNodeEsmResolver] (/.../node_modules/ts-node/src/util.ts:166:13)
at createEsmHooks (/.../node_modules/ts-node/src/esm.ts:125:51)
at Object.registerAndCreateEsmHooks (/.../node_modules/ts-node/src/esm.ts:118:10)
at file:///.../node_modules/ts-node/esm.mjs:8:7
at ModuleJob.run (node:internal/modules/esm/module_job:235:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:461:24)
at async Hooks.register (node:internal/modules/esm/hooks:150:26)
at async MessagePort.handleMessage (node:internal/modules/esm/worker:199:18)
Search Terms
DeprecationWarning: fs.Stats
Steps to reproduce the problem
Warning only appears in node 22, node 21 is fine.
The line of code in question;
Minimal reproduction
With
ts-node.register.mjs
containing the lines of code suggested here.Specifications
The text was updated successfully, but these errors were encountered: