-
-
Notifications
You must be signed in to change notification settings - Fork 571
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]: Module not found: Can't resolve <entry_path>
in Docker
#8433
Comments
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 |
I also have the same problem. |
Running into a similar problem with Docusaurus. However, Docusaurus is only dependent on
|
same for me Rolling back to @rsbuild/core: 1.0.19 solve issue |
Works for If I may believe my
|
we are using node:20.11.1-alpine3.18 and its failing |
Pin For example, use pnpm overrides: // package.json
{
"pnpm": {
"overrides": {
"@rspack/core": "1.1.0"
}
}
} |
for us it's a problem with "tsconfig.json". Rspack do not see this file at all in docker with |
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:
The text was updated successfully, but these errors were encountered: