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

picomatch error #685

Open
g-raman opened this issue Jun 18, 2024 · 1 comment
Open

picomatch error #685

g-raman opened this issue Jun 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@g-raman
Copy link

g-raman commented Jun 18, 2024

Experimenting with knip on a project but I'm getting this errory when trying to run yarn run knip

C:\Users\user\project\node_modules\knip\node_modules\picomatch\lib\picomatch.js:47
    throw new TypeError('Expected pattern to be a non-empty string');
    ^

if i run it with --debug i get this:

{
  cwd: 'C:/Users/user/project',
  tsConfigFile: undefined,
  gitignore: true,
  isDebug: true,
  isProduction: false,
  isStrict: false,
  isShowProgress: false,
  isIncludeEntryExports: false,
  isIncludeLibs: false,
  isIsolateWorkspaces: false,
  isWatch: false,
  tags: [ [], [] ],
  isFix: false,
  fixTypes: [],
  isRemoveFiles: false
}

The tsConfigFile is undefined for some reason so i ran yarn run knip --tsConfig ./tsconfig.json

But the issue persists

@g-raman g-raman added the bug Something isn't working label Jun 18, 2024
@webpro
Copy link
Collaborator

webpro commented Jun 18, 2024

Please provide an actual reproduction of the issue: https://knip.dev/guides/troubleshooting#minimal-reproduction

Btw, tsConfigFile is undefined, but still uses the default tsconfig.json if exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants