You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During compilation of a MF remote entrypoint the following warning is emitted:
Failed to get stats. Are you trying to access the stats from the previous compilation?
which means that the result of stats.toJson() is set to null. TS definitions don't include the null result of stats.toJson() and therefore in Re.Pack this is not handled properly (similar case never occurs when using Webpack).
It seems like the compiler shuts down on the Rust side, but continues to execute normally on the JS side. I'm not able to pinpoint this to anything on the Rust side, is there any way to debug this with the release version of Rspack?
I debugged into the source code and found out this might be an error related to the callsite plugin:
We will add more context to the error message.
Thank you so much for your help @h-a-n-a - only now I've realised you've already provided enough info to fix this on Re.Pack side!
If you have any guidance on how you would like to implement more verbose error message for the future in Rspack, I'll be happy to take that and contribute to Rspack 🙏
System Info
Details
During compilation of a MF remote entrypoint the following warning is emitted:
which means that the result of
stats.toJson()
is set tonull
. TS definitions don't include the null result ofstats.toJson()
and therefore in Re.Pack this is not handled properly (similar case never occurs when using Webpack).Related issue in Re.Pack: callstack/repack#854
Reproduce link
https://github.com/jbroma/repack-rspack-stats-repro
Reproduce Steps
pnpm install
pnpm start
(more verbose instructions in the repo
README.md
)The text was updated successfully, but these errors were encountered: