Skip to content

fix: align history package with react-router v5 requirements#263

Open
Jolg42 wants to merge 1 commit intostrichliste:masterfrom
Jolg42:fix/history-v4
Open

fix: align history package with react-router v5 requirements#263
Jolg42 wants to merge 1 commit intostrichliste:masterfrom
Jolg42:fix/history-v4

Conversation

@Jolg42
Copy link

@Jolg42 Jolg42 commented Feb 19, 2026

Hello :)

It's now my second PR, but first one in this frontend repo.

Description

Downgrade history from ^5.0.0 to ^4.10.1 to fix version mismatch.

Because react-router v5 expects history v4 API (goBack/goForward), but history v5 renamed these methods (back/forward). -> This caused navigation failures.

What this PR does

  • Downgrade history to v4.10.1 (compatible with react-router v5)
  • Replace history.back() with history.goBack() in all components

Notes:

yarn list shows the history version from react-router as ^4.9.0 which works with the version in this PR:

├─ react-router@5.2.0
│  ├─ @babel/runtime@^7.1.2
│  ├─ history@^4.9.0

  Downgrade history from ^5.0.0 to ^4.10.1 to fix version mismatch.

  react-router v5 expects history v4 API (goBack/goForward), but history v5
  renamed these methods (back/forward). This caused navigation failures.

  - Downgrade history to v4.10.1 (compatible with react-router v5)
  - Replace history.back() with history.goBack() in all components
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.

1 participant