DEV Community

Discussion on: Simplify your monorepo with npm 7 workspaces

 
sashirachakonda profile image
sashiRachakonda

i did add react and react-dom to the externals in lib1 and lib2...some reason, when i do the npm install at the root, i do see react and react-dom in the node_modules folder at the root..

i'll give it another shot...appreciate your comments..

Thread Thread
 
limal profile image
Łukasz Wolnik

No worries. I know it can be tricky.

Maybe try fixing for a single external lib1 and /create-react-app1 firstly. You might be very close to solving this but there's too many moving parts.

Good luck!

Thread Thread
 
sashirachakonda profile image
sashiRachakonda

If its not much trouble would it be possible to post your example on github ?

Thread Thread
 
limal profile image
Łukasz Wolnik

Good idea. I'll do it this weekend.