Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.3.2+: Cannot find module

See original GitHub issue

Describe 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:

  1. Set "jscpd": "3.3.2" in package.json and run npm install
  2. Run npx jscpd src
  3. 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

josephzidellcommented, Aug 11, 2020

Thanks so much @kucherenko! Works now.

kucherenkocommented, Aug 11, 2020

Sorry for that - it was broken build process

fixed at jscpd@3.3.13

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found