Closed wagwes closed 5 years ago
Can you upload a repo to demonstrate your setup? I'd be happy to take a look in that case.
I would think it's probably fixable.
FWIW: you can probably fix this by adding "src": "src/index.js"
as well as the "src:main": "src/index.js"
.
Great work @F1LT3R, I'm able to actually get CRA hot reloading within a Lerna mono-repo!
Have you tried running
yarn build
within the CRA? We're usingflow
in ourpackages
and when runningyarn build
, the build script fails due to an unexpected token (the unexpected token was a flow type definition).It appears that when we build our CRA app, it is looking at
"src:main": "src/index.js"
, where the un-transpiled code lives. Any idea on how one would point the CRA app to something like"src": "dist/index.js"
where the transpiled code lives while maintaining hot-reloading?