-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
Type 'ErrorWithCause' is not generic #674
Comments
I just needed to update typescript, not an issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
When upgrading Node.js from version 18.19.1 to 20.12.2, a TypeScript error is thrown when attempting to compile a project that uses
umzug
. The TypeScript error relates to theErrorWithCause
type in theumzug.d.ts
file not being generic, which causes a build failure.Steps to Reproduce
umzug
in a TypeScript project with the following relevant package versions:typescript
: version used (e.g., 4.5.4)umzug
: 3.8.0tsc
).Expected Behavior
The project should compile without TypeScript errors.
Actual Behavior
The TypeScript compiler throws the following error:
Possible Solution
This issue might be related to specific TypeScript version compatibilities or changes in Node.js that affect how TypeScript handles types. A temporary workaround is to set
"skipLibCheck": true
in thetsconfig.json
to ignore the library check.Additional Information
Here are the relevant versions from the yarn list output:
Request
It would be helpful to have guidance on compatibility issues or any available fixes to address this type error with newer Node.js versions.
Thank you for looking into this.
The text was updated successfully, but these errors were encountered: