Rspack plugin feedback #77800
Replies: 22 comments 56 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.
-
One more issue #78323 |
Beta Was this translation helpful? Give feedback.
-
Battling my way through issues to get this working on a non-trivial setup. Thought I might as well document my journey.
On top of the aforementioned, we're still on a mix of CJS and ESM which introduces issues that may not be related to rspack specifically. I'll include them in this little trip so far, but disregard them for the context of rspack itself. It may be useful for other people using PnP module resolution.
|
Beta Was this translation helpful? Give feedback.
-
Hey, getting error on using module federation with this. Do you have any examples on how to use Environment
Host App next.config.js
Remote app next.config.js
Error
Reproducible Repositoryhttps://github.com/adit-shah-devrev/module-federation-next-rspack |
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.
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-rspack
plugin package.When posting, provide the following:
next info
The Rspack plugin is currently experimental, and is a partner effort with the Rspack team.
Beta Was this translation helpful? Give feedback.
All reactions