-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Strict type versions in apollo-server-express require update #5350
Comments
This is fixed on the active development branch, Is there any workaround here? These versions do work with each other; is the problem some conflict with a third party package? If there's no workaround I can spend some time on a patch release today. |
@glasser I've spent the past hour trying different package versions, including rolling back a minor version or two. And, haven't gotten past this error. |
Our versions for `@types/express` and `@types/express-serve-static-core` have gotten a bit out of date. They are already upgraded on `release-3.0` but that's not quite `latest` yet. Somehow despite the fact that neither `express` nor `serve-static` have had a new version in two years, the DefinitelyTyped packages for them keep getting backwards-incompatible changes. This is apparently helpful for some users who have upgraded some other packages. Because of how finicky these types are (eg specific `@types/express` versions depends on specific `@types/express-serve-static-core` versions without appropriate version dependencies between them) I do generally think it's best to depend on exact versions here. However I also don't want to have to make any more AS2 releases. So I'm making these into caret dependencies but don't intend to make a similar change on `release-3.0`. Fixes #5350.
Our versions for `@types/express` and `@types/express-serve-static-core` have gotten a bit out of date. They are already upgraded on `release-3.0` but that's not quite `latest` yet. Somehow despite the fact that neither `express` nor `serve-static` have had a new version in two years, the DefinitelyTyped packages for them keep getting backwards-incompatible changes. This is apparently helpful for some users who have upgraded some other packages. Because of how finicky these types are (eg specific `@types/express` versions depends on specific `@types/express-serve-static-core` versions without appropriate version dependencies between them) I do generally think it's best to depend on exact versions here. However I also don't want to have to make any more AS2 releases. So I'm making these into caret dependencies but don't intend to make a similar change on `release-3.0`. Fixes #5350.
Ok, see if 2.25.2 makes you happier! |
That solved it. Thanks!! P.S. I did find a brute-force workaround using npm-force-resolutions. But that will force the same version on all instances of the nested dependency, which may break other stuff. |
apollo-server-express
strictly uses@types/express
in version4.17.11
and@types/express-serve-static-core
in version4.17.19
. Both should either be updated to4.17.12
and4.17.21
or they should not strictly use outdated versions (^4.17.11
and^4.17.19
). The new versions are containing a fix for the following TS errors:Here are the specified versions in the
package.json
:apollo-server/packages/apollo-server-express/package.json
Lines 34 to 35 in 6b9c2a0
Related:
DefinitelyTyped/DefinitelyTyped#46639 (comment)
DefinitelyTyped/DefinitelyTyped#52775
The text was updated successfully, but these errors were encountered: