-
Notifications
You must be signed in to change notification settings - Fork 12.8k
[NewErrors] 4.7.1-rc vs 4.6.4 #49142
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
Comments
I'd like to know if there's a better way to do this, without using |
I would probably switch to |
Sigh What if I told you that |
Wh-really? Why? Because it insists on using |
Yeah, the reason is because |
Also, |
I would use |
Ref typescript-eslint/typescript-eslint#5018 (comment) But The interesting thing is even not passing any props won't work. I think it's already intersecting to |
Hi, I also encountered a similar error after upgrading my TypeScript. I am using import AbortController from "abort-controller";
const controller = new AbortController();
const init: RequestInit = {
headers: headers,
signal: controller.signal,
}; TypeScript raises an error saying:
I am wondering is there a proper way to solve this error. Thanks! |
You may want to file a bug on {
"devDependencies": {
"@typescript/lib-dom": "npm:@types/web"
}
} |
The following errors were reported by 4.7.1-rc, but not by 4.6.4
coder/code-server
6 of 57 projects failed to build with the old tsc
src/tsconfig.json
error TS2741: Property 'colorSpace' is missing in type '{ width: number; height: number; data: Uint8ClampedArray; }' but required in type 'ImageData'.
facebook/docusaurus
31 of 41 projects failed to build with the old tsc
packages/docusaurus-theme-classic/tsconfig.json
error TS2698: Spread types may only be created from object types.
reduxjs/react-redux
test/typetests/tsconfig.json
error TS2698: Spread types may only be created from object types.
tsconfig.json
error TS2698: Spread types may only be created from object types.
react-bootstrap/react-bootstrap
test/tsconfig.json
error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?
tsconfig.json
error TS2774: This condition will always return true since this function is always defined. Did you mean to call it instead?
statelyai/xstate
6 of 20 projects failed to build with the old tsc
packages/xstate-inspect/tsconfig.json
error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
packages/xstate-test/tsconfig.json
error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
palantir/blueprint
3 of 25 projects failed to build with the old tsc
packages/docs-theme/src/tsconfig.json
error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
lensapp/lens
6 of 9 projects failed to build with the old tsc
tsconfig.extension-api.json
error TS2345: Argument of type 'import("/mnt/ts_downloads/lens/node_modules/abort-controller/dist/abort-controller").AbortSignal' is not assignable to parameter of type 'AbortSignal'.
error TS2698: Spread types may only be created from object types.
tsconfig.json
error TS2345: Argument of type 'import("/mnt/ts_downloads/lens/node_modules/abort-controller/dist/abort-controller").AbortSignal' is not assignable to parameter of type 'AbortSignal'.
error TS2322: Type 'AbortSignal' is not assignable to type 'import("/mnt/ts_downloads/lens/node_modules/@types/node-fetch/externals").AbortSignal'.
error TS2698: Spread types may only be created from object types.
webpack/tsconfig.json
error TS2345: Argument of type 'import("/mnt/ts_downloads/lens/node_modules/abort-controller/dist/abort-controller").AbortSignal' is not assignable to parameter of type 'AbortSignal'.
error TS2322: Type 'AbortSignal' is not assignable to type 'import("/mnt/ts_downloads/lens/node_modules/@types/node-fetch/externals").AbortSignal'.
error TS2698: Spread types may only be created from object types.
The text was updated successfully, but these errors were encountered: