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
Since the update to 8.7.0, I'm getting a typescript error when using session middleware:
frontend/app/middlewares/session.server.ts:6:30 - error TS2742: The inferred type of 'getSession' cannot be named without a reference to '../../../node_modules/remix-utils/build/server/middleware/utils'. This is likely not portable. A type annotation is necessary.
I believe this is caused by moving part of the session middleware public API into unexported files in d7bfb0c
As such, this error message seems accurate, but I'm confused as to why this has not been mentioned before :) Am I doing something wrong here?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Since the update to 8.7.0, I'm getting a typescript error when using session middleware:
I believe this is caused by moving part of the session middleware public API into unexported files in d7bfb0c
As such, this error message seems accurate, but I'm confused as to why this has not been mentioned before :) Am I doing something wrong here?
Beta Was this translation helpful? Give feedback.
All reactions