pluralsight-react-performance
pluralsight-react-performance copied to clipboard
Yarn Start doesn't work with error : 'PORT' is not recognized as an internal or external command
Steps to reproduce:
- Clone the repo
- run Yarn (or npm )
- run yarn start
Actual result:
yarn run v1.22.17 $ PORT=4000 react-scripts start 'PORT' is not recognized as an internal or external command, operable program or batch file. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Expected result App starting
My workaround
was to edit package.json:
"start": "react-scripts start",
and updated React :
"dependencies": { "@rehooks/component-size": "^1.0.3", "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "levenshtein": "^1.0.5", "prettier": "^1.19.1", "react": "17.0.2", "react-confetti": "^5.0.1", "react-dom": "17.0.2", "react-modal": "^3.11.1", "react-scripts": "3.3.0", "resize-observer-polyfill": "^1.5.1", "uuid": "^3.3.3" },
@hendrikswan this is still not working. You might want to update the package.json and set react-scripts to newest version :)