We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Next.js uses "target": "es5" due to reasons described here.
"target": "es5"
So next build fails due to a type error when tinybench is present via Vitest:
next build
../../node_modules/.pnpm/[email protected]/node_modules/tinybench/dist/index.d.ts:254:5 Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher. 252 | */ 253 | declare class Bench extends EventTarget { > 254 | #private; | ^ 255 | signal?: AbortSignal; 256 | warmupTime: number; 257 | warmupIterations: number;
I have "skipLibCheck": false, so setting "skipLibCheck": true would be a workaround, but I'd lose type safety.
"skipLibCheck": false
"skipLibCheck": true
The text was updated successfully, but these errors were encountered:
Thanks for the notice! It should work now.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Next.js uses
"target": "es5"
due to reasons described here.So
next build
fails due to a type error when tinybench is present via Vitest:I have
"skipLibCheck": false
, so setting"skipLibCheck": true
would be a workaround, but I'd lose type safety.The text was updated successfully, but these errors were encountered: