Open ericclemmons opened 5 years ago
Because of this error:
upath@1.0.4: The engine "node" is incompatible with this module. Expected version ">=4 <=9". Got "10.13.0"
(https://github.com/facebook/create-react-app/issues/4367)
I had to run:
yarn config set ignore-engines true
yarn create react-app packages/react-app
Came so close! The problem is create-react-app can't serve assets from a folder besides /
in development:
This can be typical of a SPA that lives alongside GraphQL.
I think the right setup is:
Where
create-react-app
doesn't export a middleware, but just has apackage.json
.But what's in `index.*.js`?_
By exporting the path, this means we'll inspect
path.resolve(require.resolve('cra'), './package.json')
for the following commands:build
(Optional)dev
(Optional)start
When getting ready for production:
yarn workspaces run build
(which should create all of the static assets)yarn start