aragon/court-dashboard

Not running locally

Closed this issue · 3 comments

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.

Ah, cc @fabriziovigevani @rperez89 we should use something like cross-env when defining env vars in the npm scripts.

It is a development issue for windows platform.

  1. To run it locally, remove the REACT_APP_BUILD=$(git log --pretty=format:'%h' -n 1) from the start script from package.json file
  2. 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"]

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.