Skip to content

Conversation

jacob-ebey
Copy link
Member

No description provided.

@jacob-ebey jacob-ebey merged commit 787e6ce into dev Jun 26, 2025
8 checks passed
@jacob-ebey jacob-ebey deleted the rsc branch June 26, 2025 21:14
vezaynk pushed a commit to vezaynk/react-router that referenced this pull request Jul 7, 2025
Co-authored-by: Jacob Ebey <[email protected]>
Co-authored-by: Matt Brophy <[email protected]>
Co-authored-by: Mark Dalgleish <[email protected]>
Co-authored-by: Hiroshi Ogawa <[email protected]>
Copy link
Contributor

🤖 Hello there,

We just published version 7.7.0-pre.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

Copy link
Contributor

🤖 Hello there,

We just published version 7.7.0 which includes this pull request. If you'd like to take it for a test run please try it out and let us know what you think!

Thanks!

@kiddliu
Copy link

kiddliu commented Jul 21, 2025

How can I opt-out this with React 18?

> rsbuild build

  Rsbuild v1.4.8

info    Type checker is enabled. It may take some time.
info    build started...
error   Build error: 
File: javascript/esm|/home/kiddliu/source/ui-consumer/node_modules/react-router/dist/development/chunk-T3VM44WY.mjs:1:1
  × ESModulesLinkingError: export 'use' (imported as 'React5') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, act, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, startTransition, unstable_act, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, version)
      ╭─[2499:18]
 2497 │   getPayload
 2498 │ }) {
 2499 │   const payload = React5.use(getPayload());
      ·                   ──────────
 2500 │   if (payload.type === "redirect") {
 2501 │     throw new Response(null, {
      ╰────

 @ ../../node_modules/react-router/dist/development/index.mjs
 @ ./src/App.tsx
 @ ./src/main.tsx

error   Rspack build failed.

@pawelblaszczyk5
Copy link
Contributor

RSC requires React 19 + I'm not sure whether RSPack has a layer for RSC? Or does it work with react-server-dom-webpack APIs?

@kiddliu
Copy link

kiddliu commented Jul 21, 2025

Seems that I need to use https://github.com/rspack-contrib/rsbuild-plugin-react-router even if working in library mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants