Cannot find module 'fs-extra/esm' or its corresponding type declarations.ts(2307)
envgap__jprichardson__node-fs-extra-979
01 / FAILURE SIGNATURE
As reported upstream
No identifying execution failure has been captured.
Not scored yet.
- The failure reproduces in a clean container and the known fix makes the project run; it has not been scored yet.
02 / ENVIRONMENT RECIPE
- Base commit
8e7793b053bba4eb8cc76b519e1b69ee7a68fb3a- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
jprichardson/node-fs-extra #979 · read the original issue
Both importing from fs-extra and fs-extra/esm doesn't work anymore in v11.0.0. I tried the following lines in my fs.ts file:
```
import { ensureDirSync, ensureFileSync, removeSync } from 'fs-extra'
import { ensureDirSync, ensureFileSync, removeSync } from 'fs-extra/esm'
```
The top line does work in v10.1.0. Am I doing something wrong?
<!-- First ensure you installed the latest version of fs-extra -->
<!-- If your bug still exists please fill out the following information if it applies to your issue: -->
<!-- Please check if you have installed a supported version of Node.js as written in "engines" in the package.json -->
- **Operating System:** Ubuntu 22.04.1 LTS
- **Node.js version:** v16.18.0
- **`fs-extra` version:** v11.0.0
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]