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

No files matching the pattern Error #57

Open
ChazUK opened this issue Jul 11, 2023 · 1 comment
Open

No files matching the pattern Error #57

ChazUK opened this issue Jul 11, 2023 · 1 comment

Comments

@ChazUK
Copy link

ChazUK commented Jul 11, 2023

I'm using the following command in my .lintstagedrc.json file "*.ts": "npx tsc-files --noEmit src/typings.d.ts cypress/support/index.d.ts" and every so often it comes up with the following error:

No files matching the pattern "/Users/charliefrancis/Contracts/Bunk/repos/bunk-web/.storybook/main.tss/Contracts/Bunk/repos/bunk-web/.storybook/main.ts" were found.
Please check for typing mistakes in the pattern.

From what I can tell the filepath is getting duplicated and cropped causing a bad path, but unsure how to rectify it.
/Users/charliefrancis/Contracts/Bunk/repos/bunk-web/.storybook/main.ts...s/Contracts/Bunk/repos/bunk-web/.storybook/main.ts

Removing the files from the command and using just npx tsc-files --noEmit results in:

No files matching the pattern "/Users/charliefrancis/Contracts/Bunk/repos/bunk-web/.storybook/main.tsain.ts" were found.
Please check for typing mistakes in the pattern.

Here are the package versions I'm using:

  • node: 16.18.1
  • npm: 8.19.2
  • eslint: 8.34.0
  • tsc-files: 1.1.3
  • lint-staged: 13.1.0
@gustavopch
Copy link
Owner

Hey @ChazUK, I also don't know what's happening from the description and unfortunately don't have time to try to reproduce. My suggestion is that you copy this file (https://github.com/gustavopch/tsc-files/blob/master/cli.js) into your own project and tweak it until you can make it work, and then report back to me the diff of what changes you made so I can apply the fix.

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