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
Before, doing import fs from 'fs-extra' would indeed get you the fs module.
Now, fs is undefined (though import { nonDefaultExport } from 'example-package' still appears to work).
I don't know how exactly "default" imports work with .cjs, so I'm not sure what the specific issue is here.
Workaround
Use @swc-node/register@1.6.8
The text was updated successfully, but these errors were encountered:
To reproduce
See this reproduce repo I made for you
Details
Before, doing
import fs from 'fs-extra'
would indeed get you thefs
module.Now,
fs
is undefined (thoughimport { nonDefaultExport } from 'example-package'
still appears to work).I don't know how exactly "default" imports work with
.cjs
, so I'm not sure what the specific issue is here.Workaround
Use
@swc-node/register@1.6.8
The text was updated successfully, but these errors were encountered: