Open mxmason opened 1 day ago
The same issue is occurring on Cloudflare Pages. Although I havenβt changed the code, after updating rspack from v1.1.0 to v1.1.1, a "module not found" error started appearing. Building locally works without any issues.
We have a similar issue with @rsbuild/core: 1.1.1 also, probably related? Rolling back to @rsbuild/core: 1.0.19 that uses @rspack/core: 1.0.14 fixes the issue
System Info
System: OS: macOS 15.1 CPU: (8) arm64 Apple M1 Pro Memory: 262.28 MB / 32.00 GB Shell: 5.9 - /opt/homebrew/opt/zsh/bin/zsh Binaries: Node: 20.11.0 - ~/.local/state/fnm_multishells/44569_1731538780778/bin/node npm: 10.2.4 - ~/.local/state/fnm_multishells/44569_1731538780778/bin/npm Browsers: Chrome: 130.0.6723.117 Safari: 18.1 npmPackages: @rspack/cli: 1.1.1 => 1.1.1 @rspack/core: 1.1.1 => 1.1.1
Details
As of v1.1.1, rspack does not successfully build in Docker containers. This bug is not present in rspack v1.1.0, or when installing directly on the host machine.
Reproduce link
https://github.com/mxmason/rspack-repro-docker
Reproduce Steps
docker build . -f Dockerfile-rspack -t rspack-image
Compare to building directly on the host machine, which works fine:
Builds in Docker also work in v1.1.0. To demonstrate, downgrade the rspack binaries and try to build the Docker image again: