Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to get stats when compiling MF exposed entrypoint #8963

Open
jbroma opened this issue Jan 7, 2025 · 1 comment
Open

[Bug]: Failed to get stats when compiling MF exposed entrypoint #8963

jbroma opened this issue Jan 7, 2025 · 1 comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.

Comments

@jbroma
Copy link

jbroma commented Jan 7, 2025

System Info

 System:
    OS: macOS 15.1.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 4.65 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/Library/Caches/fnm_multishells/46674_1736250537490/bin/node
    npm: 10.5.2 - ~/Library/Caches/fnm_multishells/46674_1736250537490/bin/npm
    pnpm: 9.15.3 - ~/Library/Caches/fnm_multishells/46674_1736250537490/bin/pnpm
    bun: 1.1.34 - /opt/homebrew/bin/bun
    Watchman: 2024.11.04.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 131.0.6778.205
    Safari: 18.1.1
  npmPackages:
    @rspack/core: ^1.1.8 => 1.1.8

Details

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).

Related issue in Re.Pack: callstack/repack#854

Reproduce link

https://github.com/jbroma/repack-rspack-stats-repro

Reproduce Steps

  1. Clone the repo
  2. pnpm install
  3. pnpm start

(more verbose instructions in the repo README.md)

@jbroma jbroma added bug Something isn't working pending triage The issue/PR is currently untouched. labels Jan 7, 2025
@jbroma
Copy link
Author

jbroma commented Jan 7, 2025

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

1 participant