Skip to content
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

Cannot find module 'node:fs' #29

Closed
xqin opened this issue Sep 26, 2023 · 1 comment
Closed

Cannot find module 'node:fs' #29

xqin opened this issue Sep 26, 2023 · 1 comment

Comments

@xqin
Copy link

xqin commented Sep 26, 2023

  • I'm submitting a ...
    [x] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

Cannot find module 'node:fs'
Require stack:
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/blamer/build/main/vcs/git.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/blamer/build/main/blamer.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/blamer/build/main/index.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/@jscpd/finder/dist/hooks/blamer.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/@jscpd/finder/dist/hooks/index.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/node_modules/@jscpd/finder/dist/index.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/dist/index.js
- /tmp/.npm/_npx/66/lib/node_modules/jscpd/bin/jscpd

https://github.com/kucherenko/blamer/blame/2ca7c28bdd8d31bb7d8bd33e8a637c456476a853/src/vcs/git.ts#L4

node version: v14.16.1

https://nodejs.org/api/esm.html#node-imports

node:imports only support by node >=v14.18.0 >=v16.0.0

image

For compatibility with lower versions, please adjust the way the module is introduced. Thank you very much.

@kucherenko
Copy link
Owner

fixed at blamer@1.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants