Skip to content

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.

3 participants