Closed
Conversation
🦋 Changeset detectedLatest commit: 8671812 The changes in this PR will be included in the next version bump. This PR includes changesets to release 11 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
Hi! I've tested this fix across multiple Node versions (from v20.x through v22.13) and can confirm it resolves our issue in the Clerk React Router SDK. 👍🏼 🚀 |
Contributor
Author
|
Replaced by #12729 |
haines
added a commit
to cerbos/react-router
that referenced
this pull request
Mar 4, 2025
remix-run#12475 remix-run#12708 Signed-off-by: Andrew Haines <haines@cerbos.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This removes the
module-syncexport fromreact-routerwhich currently points to the ESM build.From the Node docs:
It sounds like this would definitely cause issues for us to tell node to always load the ESM version - since if anything else loaded the CJS version we'd immediately have a mismatch?
Right now, we can run into issues like this on Node 22+ (repro) where we load the CJS and ESM versions during dev:
Prior to this PR I wasn't aware of
module-sync, or if there was a specific reason we included it - so I'd like to get @jacob-ebey 's eyes on this as well before merging.Closes #12475