Skip to content

fix(remix): Fix express Request and Response types #5758

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

Merged
merged 4 commits into from
Sep 17, 2022

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Sep 16, 2022

Recently, this issue (wherein the Request and Response types from express claim never to have heard of standard properties like headers) flared up in our remix tests. It turns out the culprit was that a few days ago, DefinitelyTyped removed TS 4.0 support from a number of packages, among them @types/express-serve-static-core (upon which @types/express depends).

Key changes in this fix:

  • Lock @types/express-serve-static-core to the last version before this change.
  • Add @types/express to @sentry/remix's dev dependencies (where it should have been all along).
  • Update all usages of @types/express to latest. (Not strictly necessary, but done as part of my debugging. Doesn't seem to break anything, and we might as well be up to date.)

@lobsterkatie lobsterkatie force-pushed the kmclb-fix-remix-express-types branch 2 times, most recently from 99a5a10 to 1d2daa5 Compare September 16, 2022 18:00
@lobsterkatie lobsterkatie force-pushed the kmclb-fix-remix-express-types branch from 1d2daa5 to 93e006e Compare September 16, 2022 18:05
@lobsterkatie lobsterkatie marked this pull request as ready for review September 16, 2022 18:40
@lobsterkatie lobsterkatie merged commit 16c121a into master Sep 17, 2022
@lobsterkatie lobsterkatie deleted the kmclb-fix-remix-express-types branch September 17, 2022 01:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants