kucherenko / jscpd

Copy/paste detector for programming source code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Jscpd 3.5.0] @jscpd/html-reporter missing dependency @jscpd/finder

harrytran998 opened this issue · comments

Describe the bug

Error: @jscpd/html-reporter tried to access @jscpd/finder, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

To Reproduce
Steps to reproduce the behavior:

  1. Create some project
  2. Install jscpd
  3. run yarn jscpd --pattern "src/**/*.ts"

Expected behavior
Everything work well

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOs Montery
  • NodeJS Version: 18
  • jscpd version 3.5.0

Additional context
Add any other context about the problem here.

I tried to fork and make a pull request to fix this. Just simple put "@jscpd/finder": "^3.5.0" in your dependencies of @jscpd/html-report and re-run yarn install.

But seem your project configs something I can not install dependencies 😆.

fixed at jscpd@3.5.8