-
Notifications
You must be signed in to change notification settings - Fork 131
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]: peerDependencies not work #3671
Comments
This problem seems to have nothing to do with rsbuild, but with pnpm. |
Hello @hellobq. Please provide a reproduction repository or online demo. For background, see Why reproductions are required. Thanks ❤️ |
this problem seems very common in monorepo and soft-link ( ...However, it has nothing to do with rsbuild |
no, i installed the dependencies locally using npm not pnpm. 😊 But webpack can handle this scenario... |
|
I tried it and the problem can be solved through the git protocol. now you can close this issue. Thank you. ❤️ |
Version
Mac m1
chrome lastest
@rsbuild/[email protected]
Details
Package-B used in project-A (imported through the file protocol ), react is introduced in package-B through
peerDependencies
, and an error×Module not found: Can't resolve 'react' ...
will be reported in the development environmentReproduce link
no
Reproduce Steps
use
npx create-rsbuild --dir my-project --template react
create project-Athen use package-B(peerDependencies include react)
then npm run dev
then throw error...
The text was updated successfully, but these errors were encountered: