You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using yarn and rspack in my app (react) in monorepo.
I extracted part of UI elements to internal project to be able to share them between different projects. Shared part is built using tsup, like:
My problem is that main app (built with rsbuild) started showing strange errors like "Invalid Hook call". I think this is due to react libs duplication in final bundle. Problem can be mitigated somehow if I remove nmHoistingLimits: workspaces from .yarnrc.yml but then webstorm has a problem with tracking dependencies. So the question is, can rsbuild help me solve this problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using yarn and rspack in my app (react) in monorepo.
I extracted part of UI elements to internal project to be able to share them between different projects. Shared part is built using tsup, like:
All shared deps where put in
peerDependencies
section:My problem is that main app (built with rsbuild) started showing strange errors like "Invalid Hook call". I think this is due to react libs duplication in final bundle. Problem can be mitigated somehow if I remove
nmHoistingLimits: workspaces
from .yarnrc.yml but then webstorm has a problem with tracking dependencies. So the question is, can rsbuild help me solve this problem?This is my current rsbuild.config.ts
Beta Was this translation helpful? Give feedback.
All reactions