nickbullock / lerna-react-monorepo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lerna-react-monorepo

Check out the different branches for different approaches to this problem.

Instructions

npm i 
./node_modules/.bin/lerna bootstrap 
cd packages/react-dep && npm run build 
cd ../main && npm start

You will get an Invalid hook call error - which is because there are two versions of react around.

facebook/react#14257 (comment)

The problem is that the react-dep code is using its own version of react, rather than using the version in main.

About


Languages

Language:JavaScript 73.1%Language:HTML 17.4%Language:CSS 9.4%