Rspack plugin feedback #77800
Replies: 33 comments 75 replies
-
|
let’s go 🚀 |
Beta Was this translation helpful? Give feedback.
-
Environment
Reproduction procedure
ErrorRspack plugin The error stacktrace |
Beta Was this translation helpful? Give feedback.
-
|
i got it working well but in dev it disconnects from hmr many times over, I don't have logs at hand though, had to revert |
Beta Was this translation helpful? Give feedback.
-
|
Hi, currently, my project is using Next.js v13 with Webpack. Is there any workaround to migrate the bundler to Rspack? Alternatively, do you have any suggestions for a different bundler that works well with Next.js v13? My application is getting larger and feels slower, so I’d appreciate any advice. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I've been testing next-rspack with our repo, and one of the issues that comes up is to do with the @sentry/nextjs plugin. This is responsible for uploading sourcemaps to sentry during the build. I double checked that the issue was not just because we are using an older major (7) vs the latest (9), and I see different errors for both. On the latest, 9.11.0, I get this error On 7.114.0, I get this error I have confirmed that removing the withRSPack step removes these errors. Cheers, |
Beta Was this translation helpful? Give feedback.
-
|
In dev mode, when loading a page, I see a warning “Failed to lookup module by ID” for every server action file that the page depends on: (Each of these referenced files has |
Beta Was this translation helpful? Give feedback.
-
|
Hey, I was trying out Rspack with PayloadCMS and when trying to build this error happens: |
Beta Was this translation helpful? Give feedback.
-
|
hello, Thank you for your improvements, but I only see a 1 second difference when I test it. rspack : next: |
Beta Was this translation helpful? Give feedback.
-
|
Tried it and we get a lot of issues like this |
Beta Was this translation helpful? Give feedback.
-
|
I am using pages router, output export, and NO custom webpack config My package json has next info |
Beta Was this translation helpful? Give feedback.
-
|
I'm getting this error with mapbox + |
Beta Was this translation helpful? Give feedback.
-
|
Super excited by this. In our repo, we already use Rsbuild for non-Next.js applications. Is there a simple way to reuse its config without having to build a second config for Rspack? One middle-ground could be to use e.g. DEBUG mode to spit out the generated Rspack config. My concern is around possible breaking changes in minor versions as this wouldn't be a documented thing |
Beta Was this translation helpful? Give feedback.
-
|
Is Yarn PNP currently not supported?
|
Beta Was this translation helpful? Give feedback.
-
|
Generating a manifest file with manifest.ts throws the following error: Import trace for requested module:
next-metadata-route-loader?filePath=%2FUsers%2Fusername%2FCode%2Facme%2Fproject-name%2Fapps%2Fapp-name%2Fsrc%2Fapp%2Fmanifest.ts&isDynamicRouteExtension=1!?__next_metadata_route__
⨯ next-metadata-route-loader?filePath=%2FUsers%2Fusername%2FCode%2Facme%2Fproject-name%2Fapps%2Fapp-name%2Fsrc%2Fapp%2Fmanifest.ts&isDynamicRouteExtension=1!?__next_metadata_route__
× Module build failed:
╰─▶ × TypeError: context.loadModule is not a function
│ at mod (/Users/username/Code/acme/project-name/node_modules/.pnpm/next@15.3.1-canary.11_@opentelemetry+api@1.9.0_@playwright+test@1.50.1_babel-plugin-react-com_dcec2llys6a7epps6btzp2zqra/node_modules/next/dist/build/webpack/loaders/utils.js:76:17)
│ at new Promise (<anonymous>)
│ at getLoaderModuleNamedExports (/Users/username/Code/acme/project-name/node_modules/.pnpm/next@15.3.1-canary.11_@opentelemetry+api@1.9.0_@playwright+test@1.50.1_babel-plugin-react-com_dcec2llys6a7epps6btzp2zqra/node_modules/next/dist/build/webpack/loaders/utils.js:75:23)
│ at createReExportsCode (/Users/username/Code/acme/project-name/node_modules/.pnpm/next@15.3.1-canary.11_@opentelemetry+api@1.9.0_@playwright+test@1.50.1_babel-plugin-react-com_dcec2llys6a7epps6btzp2zqra/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js:40:70)
│ at getDynamicTextRouteCode (/Users/username/Code/acme/project-name/node_modules/.pnpm/next@15.3.1-canary.11_@opentelemetry+api@1.9.0_@playwright+test@1.50.1_babel-plugin-react-com_dcec2llys6a7epps6btzp2zqra/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js:122:9)
│ at Object.nextMetadataRouterLoader (/Users/username/Code/acme/project-name/node_modules/.pnpm/next@15.3.1-canary.11_@opentelemetry+api@1.9.0_@playwright+test@1.50.1_babel-plugin-react-com_dcec2llys6a7epps6btzp2zqra/node_modules/next/dist/build/webpack/loaders/next-metadata-route-loader.js:256:26)
│ at LOADER_EXECUTION (/Users/username/Code/acme/project-name/node_modules/.pnpm/@rspack+core@1.3.4/node_modules/@rspack/core/dist/index.js:5481:18)
│ at runSyncOrAsync2 (/Users/username/Code/acme/project-name/node_modules/.pnpm/@rspack+core@1.3.4/node_modules/@rspack/core/dist/index.js:5482:6)
│ at node:internal/util:433:21
│ at new Promise (<anonymous>)
│ at runSyncOrAsync2 (node:internal/util:419:12)
│ at isomorphoicRun (/Users/username/Code/acme/project-name/node_modules/.pnpm/@rspack+core@1.3.4/node_modules/@rspack/core/dist/index.js:6270:23)
│ at runLoaders (/Users/username/Code/acme/project-name/node_modules/.pnpm/@rspack+core@1.3.4/node_modules/@rspack/core/dist/index.js:6326:56)
Import trace for requested module:
next-metadata-route-loader?filePath=%2FUsers%2Fusername%2FCode%2Facme%2Fproject-name%2Fapps%2Fapp-name%2Fsrc%2Fapp%2Fmanifest.ts&isDynamicRouteExtension=1!?__next_metadata_route__
GET /manifest.webmanifest 500 in 4826ms |
Beta Was this translation helpful? Give feedback.
-
|
how do I enable experimental features? mainly I want to enable persistent caching. |
Beta Was this translation helpful? Give feedback.
-
|
Module not found: Can't resolve @ — has anyone found a solution? None of the previous comments have worked. |
Beta Was this translation helpful? Give feedback.
-
|
Hi there! Does anyone had this error before?
|
Beta Was this translation helpful? Give feedback.
-
|
What is the min Next.js version that supports rspack? |
Beta Was this translation helpful? Give feedback.
-
|
I tried to use this plugin and the build compiles with no issues but the resulting global bundle is way bigger than in the default webpack-based build (I see modules there that definitely shouldn't be in the global bundle). Using |
Beta Was this translation helpful? Give feedback.
-
|
is module federation intended to work with next-rspack? would be amazing to see. |
Beta Was this translation helpful? Give feedback.
-
|
Updated to Works properly on Next 16 beta |
Beta Was this translation helpful? Give feedback.
-
|
Tried rspack with next > [email protected] dev /home/torten/tpa-news
> next dev
Trace: Cannot call withRspack and pass the --webpack flag.
at console.trace (/home/torten/tpa-news/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/node-environment-extensions/console-dev.js:111:32)
at withRspack (/home/torten/tpa-news/node_modules/.pnpm/[email protected]_@[email protected]/node_modules/next-rspack/index.js:13:13)
at Object.<anonymous> (/home/torten/tpa-news/next.config.compiled.js:42:40)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at requireFromString (/home/torten/tpa-news/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/next-config-ts/require-hook.js:81:7)
at transpileConfig (/home/torten/tpa-news/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/build/next-config-ts/transpile-config.js:98:51)
at async loadConfig (/home/torten/tpa-news/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/server/config.js:1013:36)
at async Module.nextDev (/home/torten/tpa-news/node_modules/.pnpm/[email protected][email protected][email protected][email protected]/node_modules/next/dist/cli/next-dev.js:190:14)``` |
Beta Was this translation helpful? Give feedback.
-
|
@next-rspack/core": "1.0.0" didn't work, so I tried the beta version, but I'm getting the following error: Update: The same error occurred with version 1.0.0 (i.e., the latest
|
Beta Was this translation helpful? Give feedback.
-
|
A few issues we spotted while migrating a rather large application:
Just removing the hardcoded
|
Beta Was this translation helpful? Give feedback.
-
|
Issue with 16.0.3 I know the logs say to create an issue in another repo, I am creating it here in case others face the same issue. full command lognext infoI can provide more details if necessary. |
Beta Was this translation helpful? Give feedback.
-
|
Hey everyone! 👋 I've been trying out next-rspack in my Next.js projects and I'm really excited about the build performance benefits! The speed improvements are fantastic, and I'm grateful for all the work the teams are putting into this. I'm currently exploring micro-frontend architectures and was wondering about Module Federation support. I know next-rspack is still experimental, and I'm curious if anyone has insights on: What the future might look like for Rspack feature support in Next.js - particularly around Module Federation? Are there any workarounds or approaches that folks have found helpful for micro-frontends with Next.js in the meantime? How can we best support the development and testing of these experimental features? I completely understand that these integrations take time and careful planning, especially with Next.js's awesome SSR capabilities and routing system. Just excited to learn more about what might be coming down the road! 🚀 Thanks so much for any thoughts or experiences you can share! |
Beta Was this translation helpful? Give feedback.
-
|
In the next16.05 and next-rspack16.05 environment, the UI switches faster than compile is displayed, resulting in a flickering FOUC in the UI. |
Beta Was this translation helpful? Give feedback.
-
|
Updated from Next 16.0.2 to 16.0.6, now CSS import ordering get's messed up every time Fast Refresh rerenders the page. A hard refresh on the browser fixes it, but as soon as I make a code change that triggers Fast Refresh, the CSS is broken again. Initially the css imported in the root layout has the highest precedence. But after a Fast Refresh, css modules are moved up to the top. In my root css I define a |
Beta Was this translation helpful? Give feedback.
-
|
Next 16 + rspack breaks Per maintainer's request:
|
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please use this thread for posting feedback when using the
next-rspackplugin package.When posting, provide the following:
next infoThe Rspack plugin is currently experimental, and is a partner effort with the Rspack team.
Beta Was this translation helpful? Give feedback.
All reactions