Not running locally
Closed this issue · 3 comments
abhinav-anshul commented
The npm start
or yarn start
is failing to run this project locally on windows operating system. It logs the following error
'REACT_APP_BUILD' is not recognized as an internal or external command, operable program or batch file.
sohkai commented
Ah, cc @fabriziovigevani @rperez89 we should use something like cross-env
when defining env vars in the npm scripts.
abhinav-anshul commented
It is a development issue for windows platform.
- To run it locally, remove the
REACT_APP_BUILD=$(git log --pretty=format:'%h' -n 1)
from the start script frompackage.json
file - There is an eslint issue as well because the
linebreak-style
has been configured only for Unix. To resolve, please include"linebreak-style": 0
instead of"linebreak-style": [ "error", "unix"]
fabriziovigevani commented
Hey thanks for reporting this. Addressed the issues at #284
Re eslint
, added a git attribute so git doesn't update your files with CRLF when checking out.