v3.3.2+: Cannot find module
See original GitHub issueDescribe the bug v3.3.1 works fine. Upgraded to 3.3.2, and it gives this error:
Cannot find module '/Users/<xyz>/<project>/src/frontend/node_modules/jscpd/bin/../dist'
Require stack:
- /Users/<xyz>/<project>/src/frontend/node_modules/jscpd/bin/jscpd
To Reproduce Steps to reproduce the behavior:
- Set
"jscpd": "3.3.2"
inpackage.json
and runnpm install
- Run
npx jscpd src
- See error
Expected behavior It runs and shows number of duplications
Desktop (please complete the following information):
- OS: Mac
- OS Version Catalina 10.15.5
- NodeJS Version v13.8.0
- jscpd version 3.3.2
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Cannot find module using Yarn v. 3 - Stack Overflow
I figure out that the problem is that I have to run index.js using this command: $ yarn node index.js 15. As I...
Read more >[Bug?]: yarn isn't loading @types packages after upgrading TS ...
This afternoon I upgraded several projects in a monorepo using yarn 3 with pnp, and after upgrading TypeScript from 4.7.4 to 4.8.3, the...
Read more >IntelliJ cannot find module with yarn berry 3.2.3 : WEB-57519
Hi, I want to develop my own project with Next.js(12.3.1), pnp of Yarn berry(3.2.3) and IntelliJ(2022.2.2). IntelliJ can run by yarn run dev...
Read more >less than 1 minute read - Andrew Chaa
Cannot find module '/…/.yarn/releases/yarn-3.2.1.cjs ... I encounter this error once in a while. ... A simple solution is to delete .yarnrc.yml, set ...
Read more >Getting yarn 3.1.1 not found. Is there a workaround?
While using the following image image : node:17.4.0 Getting errorr + yarn install node:internal/modules/cjs/loader:936 Error: Cannot find ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks so much @kucherenko! Works now.
Sorry for that - it was broken build process
fixed at jscpd@3.3.13