You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] [typescript-fetch] Compile error when using "noImplicitOverride" in tsconfig and ES2022 #14515
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
This is similar to issue #12948 but only happens when you use ES2022 as the target because there cause?: unknown has been added to Error in lib.es2022.error.d.ts
src/runtime.ts:245:17 - error TS4115: This parameter property must have an 'override' modifier because it overrides a member in base class 'Error'.
245 constructor(public cause: Error, msg?: string) {
~~~~~~~~~~~~~~~~~~~
Found 1 error in src/runtime.ts:245
Related issues/PRs
Suggest a fix
As this problem only occurs with ES2022 I guess one would have to introduce a special switch to know what ES-Version the generated code needs to compile with.
Reacted by ssams, Dominik Seichter, DreyLiky, Marinello, penenkel, Lorenz Leitner, meickmeyer, Ryan Elian, Shota Kitahara, 梅津 健太郎 and 11 more
Activity
jycr commentedon Jan 7, 2025
Any news about this issue?
magulin commentedon Apr 24, 2025
Any update on this?
mfarahat commentedon Mar 25, 2026
Any update on this?