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

[pm] bun doesn't install peer dep #16970

Open
sequencerr opened this issue Feb 1, 2025 · 0 comments
Open

[pm] bun doesn't install peer dep #16970

sequencerr opened this issue Feb 1, 2025 · 0 comments
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client docker An issue that occurs when running in Docker

Comments

@sequencerr
Copy link
Contributor

sequencerr commented Feb 1, 2025

What version of Bun is running?

No response

What platform is your computer?

No response

What steps can reproduce the bug?

https://github.com/sequencerr/bun-repro-peer
docker build --no-cache --progress=plain . -t bun-repro

What is the expected behavior?

to act the same as npm on peerDependencies behalf, or I missing some bun special behavior like with postinstall scripts. maybe npm doesn't follow peerDependencies logic? (of adding peers manually in your project's package.json)

What do you see instead?

 ModuleBuildError: Module build failed (from ../../node_modules/react-compiler-webpack/dist/react-compiler-loader.js):
 Error: Cannot find module '/app/node_modules/babel-plugin-react-compiler/index.js'. Please verify that the package.json has a valid "main" entry
     at tryPackage (node:internal/modules/cjs/loader:443:19)
     at Module._findPath (node:internal/modules/cjs/loader:711:18)
     at Module._resolveFilename (node:internal/modules/cjs/loader:1126:27)
     at Module._load (node:internal/modules/cjs/loader:981:27)
     at Module.require (node:internal/modules/cjs/loader:1231:19)
     at require (node:internal/modules/helpers:177:18)
     at Object.<anonymous> (/app/node_modules/react-compiler-webpack/dist/react-compiler-loader.js:4:32)
     at Module._compile (node:internal/modules/cjs/loader:1364:14)
     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
     at Module.load (node:internal/modules/cjs/loader:1203:32)
     at processResult (/app/node_modules/webpack/lib/NormalModule.js:891:19)
     at /app/node_modules/webpack/lib/NormalModule.js:1037:5
     at /app/node_modules/loader-runner/lib/LoaderRunner.js:400:11
     at /app/node_modules/loader-runner/lib/LoaderRunner.js:185:11
     at loadLoader (/app/node_modules/loader-runner/lib/loadLoader.js:33:11)
     at iteratePitchingLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:182:2)
     at iteratePitchingLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:178:10)
     at /app/node_modules/loader-runner/lib/LoaderRunner.js:189:18
     at handleResult (/app/node_modules/loader-runner/lib/loadLoader.js:53:2)
     at loadLoader (/app/node_modules/loader-runner/lib/loadLoader.js:35:10)

Additional information

Maybe related:
#16879
#7654
#3410

@sequencerr sequencerr added bug Something isn't working needs triage labels Feb 1, 2025
@RiskyMH RiskyMH added bun install Something that relates to the npm-compatible client docker An issue that occurs when running in Docker and removed needs triage labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client docker An issue that occurs when running in Docker
Projects
None yet
Development

No branches or pull requests

2 participants