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

error TS7016: Could not find a declaration file for module 'minimatch' #23

Open
saidelike opened this issue Mar 8, 2024 · 1 comment

Comments

@saidelike
Copy link
Contributor

MINGW64 /c/command-server_fork (main)
$ pnpm install
 WARN  deprecated vscode-test@1.6.1: This package has been renamed to @vscode/test-electron, please update to the new name
Downloading registry.npmjs.org/typescript/4.9.5: 11.62 MB/11.62 MB, done
Packages: +231
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 232, reused 169, downloaded 62, added 231, done

dependencies:
+ minimatch 3.1.2 (9.0.3 is available)
+ rimraf 3.0.2 (5.0.5 is available)

devDependencies:
+ @types/glob 7.2.0 (8.1.0 is available)
+ @types/mocha 8.2.3 (10.0.6 is available)
+ @types/node 15.14.9 (20.11.25 is available)
+ @types/rimraf 3.0.2 (4.0.5 is available)
+ @types/vscode 1.87.0
+ @typescript-eslint/eslint-plugin 4.33.0 (7.1.1 is available)
+ @typescript-eslint/parser 4.33.0 (7.1.1 is available)
+ eslint 7.32.0 (8.57.0 is available)
+ glob 7.2.3 (10.3.10 is available)
+ mocha 8.4.0 (10.3.0 is available)
+ typescript 4.9.5 (5.4.2 is available)
+ vscode-test 1.6.1 deprecated

MINGW64 /c/command-server_fork (main)
$ pnpm compile

> command-server@0.9.1 compile C:\command-server_fork
> tsc -p ./

src/commandRunner.ts:1:27 - error TS7016: Could not find a declaration file for module 'minimatch'. 'C:/command-server_fork/node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js' implicitly has an 'any' type.
  If the 'minimatch' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minimatch'

1 import { Minimatch } from "minimatch";
                            ~~~~~~~~~~~


Found 1 error in src/commandRunner.ts:1

 ELIFECYCLE  Command failed with exit code 2.

this is building from Windows.

image

NOTE: this is not blocking me because I don't need the code using minimatch.

@pokey
Copy link
Owner

pokey commented Mar 11, 2024

this repo uses yarn, not pnpm. Try doing the install using yarn and see if you still have the same issue; seems fine on my machine

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