-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
node_modules/glob/dist/mjs/index"' has no exported member 'IOptions'. && Minipass type error #529
Comments
You definitely should not have the What version of typescript are you using? What does |
Oh also, what's in |
Typescript version: Output of
this is a snippet of code where the IOptions error occurs |
The minipass error is fixed on the latest release, let globOptions: glob.IOptions = {};
Do this: import type { GlobOptions } from 'glob'
export async function copyFolder(sourceDir: string, destDir: string, exclude?: string[]) {
let globOptions: GlobOptions = {}; If you know that you will/won't use |
This requires the minipass with the fixed EventEmitter types, and also the tsconfig setting that let the error slip past in the first place. Re: #529 Re: isaacs/minipass#49
This requires the minipass with the fixed EventEmitter types, and also the tsconfig setting that let the error slip past in the first place. Re: isaacs/node-glob#529 Re: isaacs/minipass#49
These are causing errors on CI since the upgrade and isaacs/node-glob#529 (comment) says they shouldn't be used.
I am currently trying to upgrade glob from version 8.1.0 to 10.2.4 (as long as I have version 9.x.x or higher it's fine). @types/glob version is 8.1.0. When running npm run build, the following error comes:
Gone through multiple stack overflow threads, none of them have worked. Saw one thread where apparently @types/glob isn't required but removing that didn't work. Running npm install minipass also didn't fix the minipass errors
The text was updated successfully, but these errors were encountered: