The project is working with the following versions:
- Node:
v13.5.0
- NPM version:
6.13.4
- Install the dependencies running
npm install
. - Make sure that you are using
react-static
that is installed in this package, not the global one. - Run
react-static start
.
- Create an orphan branch in the main repository.
git checkout --orphan gh-pages
When running react-static build
the error happens:
Module build failed (from ./babel-loader/lib/index.js):
TypeError: /path/to/project/artifacts/react-static-templates.js: Property value expected type of string but got null
It is because the package react-static
is installed globally and the minimum node version is
10.16.0 according to this link. The
build was tested using node version: v13.5.0
and npm version: 6.13.4
.