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 apps/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"@react-stately/datepicker": "^3.9.1",
"@react-types/datepicker": "^3.7.1",
"@remix-run/express": "2.1.0",
"@remix-run/node": "2.1.0",
"@remix-run/node": "2.17.2",

Choose a reason for hiding this comment

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

🔴 Remix package version mismatch causes duplicate server-runtime installations

Bumping only @remix-run/node from 2.1.0 to 2.17.2 while keeping all other @remix-run/* packages at 2.1.0 creates a version mismatch that violates Remix's compatibility requirements.

Click to expand

The Problem

@remix-run/node@2.17.2 brings its own @remix-run/server-runtime@2.17.2 as a transitive dependency, while the webapp and other Remix packages depend on @remix-run/server-runtime@2.1.0.

From the lockfile:

'@remix-run/node@2.17.2(typescript@5.5.4)':
    dependencies:
      '@remix-run/server-runtime': 2.17.2(typescript@5.5.4)

This means both versions are installed:

'@remix-run/server-runtime@2.1.0':
'@remix-run/server-runtime@2.17.2':

Impact

The codebase extensively imports from both @remix-run/node and @remix-run/server-runtime directly. For example:

  • apps/webapp/app/entry.server.tsx:1 imports from @remix-run/node (uses 2.17.2's server-runtime)
  • Many route files import json, redirect, LoaderFunctionArgs from @remix-run/server-runtime directly (uses 2.1.0)
  • @remix-run/express@2.1.0 and @remix-run/react@2.1.0 use 2.1.0's server-runtime

This version mismatch could cause:

  • Type incompatibilities between Response/Request objects
  • Behavioral differences in utility functions like json() or redirect()
  • Session handling inconsistencies

Recommendation

All @remix-run/* packages should be updated together to 2.17.2 to maintain compatibility.

Recommendation: Update all @remix-run/* packages to 2.17.2 together: @remix-run/express, @remix-run/react, @remix-run/serve, @remix-run/server-runtime, @remix-run/dev, @remix-run/eslint-config, and @remix-run/testing should all be bumped to maintain version consistency.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

"@remix-run/react": "2.1.0",
"@remix-run/router": "^1.15.3",
"@remix-run/serve": "2.1.0",
Expand Down
Loading
Loading