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
The types of the “nextStateOrUpdater” and “nextStateOrUpdater” parameters are not compatible.
The type “ApplicationStore | ((state: WritableDraft<ApplicationStore>) => void)” can be assigned to the type “{ general: { firstName: string; lastName: string; birthDate: Date; gender: ‘MALE’ | ‘FEMALE’ | ‘DIVERSE’ | ‘PREFFER_NOT_TO_SAY’; university: string; currentDegree: ‘HOCHSCHULREIFE’ | ‘ABITUR’ | ‘BACHELOR’ | ‘MASTER’; ... 7 more ...; experienceConsulting: number; }; ... 6 more ...; updateSubApplication(subApplication...” cannot be assigned.
I'm really stuck - I tried explicitly typing the middlewares but that didn't work either. Does anyone know what could be the problem 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.
-
I just tried to migrate my NextJS app from v4 to v5. I followed the NextJS guide to do this.
I want to use multiple middlewares (persist and always). The following code worked smoothly in v4:
When i upgrade to v5, i get the following error:
I'm really stuck - I tried explicitly typing the middlewares but that didn't work either. Does anyone know what could be the problem here?
Beta Was this translation helpful? Give feedback.
All reactions