Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"react-select-async-paginate": "^0.7.3",
"react-test-renderer": "^16.13.1",
"reactstrap": "8.10.1",
Comment thread
sentry[bot] marked this conversation as resolved.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The update to redux v5.0.0 conflicts with @reduxjs/toolkit v1.x, which bundles Redux v4.x, creating an unsupported and unstable dependency configuration.
Severity: HIGH

Suggested Fix

To resolve the version conflict, upgrade @reduxjs/toolkit to a version that officially supports Redux v5, such as v2.0.0 or newer. This ensures the entire Redux ecosystem within the application uses a consistent and compatible set of libraries.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L118

Potential issue: The project's `package.json` specifies an unsupported dependency
combination by upgrading `redux` to version 5 while keeping `@reduxjs/toolkit` at
version 1.x. The installed version of `@reduxjs/toolkit` (v1.9.7) internally bundles and
relies on Redux v4.x. However, other parts of the application, like `configureStore.ts`,
import directly from the `redux` package, which will resolve to version 5. This creates
a dual dependency issue where different parts of the Redux ecosystem could be using
different, incompatible versions of Redux simultaneously. This can lead to unpredictable
behavior, type mismatches, and runtime errors due to breaking changes in Redux v5.

"redux": "^4.0.5",
"redux": "^5.0.0",
"redux-query": "^3.4.2",
"redux-query-interface-superagent": "^3.4.2",
"redux-query-react": "^3.4.2",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11243,7 +11243,7 @@ __metadata:
react-select-async-paginate: "npm:^0.7.3"
react-test-renderer: "npm:^16.13.1"
reactstrap: "npm:8.10.1"
redux: "npm:^4.0.5"
redux: "npm:^5.0.0"
redux-query: "npm:^3.4.2"
redux-query-interface-superagent: "npm:^3.4.2"
redux-query-react: "npm:^3.4.2"
Expand Down Expand Up @@ -12993,7 +12993,7 @@ __metadata:
languageName: node
linkType: hard

"redux@npm:^4.0.0, redux@npm:^4.0.5, redux@npm:^4.2.1":
"redux@npm:^4.0.0, redux@npm:^4.2.1":
version: 4.2.1
resolution: "redux@npm:4.2.1"
dependencies:
Expand Down
Loading