Re.pack Rspack (5.0.0-alpha.0) - Panic occurred at runtime. Cannot start a runtime from within a runtime. This happens because a function (like block_on
) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
#748
Labels
Describe the bug
I am trying to upgrade from @callstack/repack v4 to v5.0.0-alpha.0.
I have followed the templates in the repack example as well as the official webpack -> rspack migration documentation to migrate from webpack to rspack.
I have a react-native super-app that leverages module-federation and exists as a monorepo.
Here's what my
rspack.config.mjs
file looks like for thehost
:When I try to start the
host
app using the command:react-native webpack-start --webpackConfig ./rspack.config.mjs --host 127.0.0.1
, I get the following error:My motivation, and need, to get to Rspack from Webpack is to lower the build time it currently takes with webpack. The fact that with callstack/repack v4 we need to use webpack and
babel-loader
to transpile hugenode_module
files (for react-native compatibility) is a pain and leads to really slow compilation of the host and other mini-apps that have bare minimal code (2-4 source files).I have learnt that
swc
is a much faster alternative tobabel-loader
and hence I'd love to be able to leverage it in my project setup.Any help with resolving this issue and getting my project to successfully work with @callstack/repack v5.0.0-alpha.0 and rspac + swc-loader would be highly appreciated.
Thanks !
System Info
Re.Pack Version
5.0.0-alpha.0
Reproduction
n/a
Steps to reproduce
Use the following config for rspack.config.js :
Try to start the dev server using:
react-native webpack-start --webpackConfig ./rspack.config.mjs
The text was updated successfully, but these errors were encountered: