ERR_MODULE_NOT_FOUND when imported in an mjs file
Open
- Dominant language
- TypeScript
- Stars
- 15
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
In my `mjs` file:
```
import {printf} from "fast-printf";
```
Error thrown in console:
`Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/xxx/node_modules/.pnpm/fast-printf@1.6.3/node_modules/fast-printf/dist/esm/src/createPrintf' imported from /xxx/node_modules/.pnpm/fast-printf@1.6.3/node_modules/fast-printf/dist/esm/src/printf.js`
(replaced full path prefix with `xxx` for readability).
Is this related to the library, or am I using node in a wrong way? Please advise.
--- Many thanks, Anton
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.