Node: v16.16.0
The broswer console only said I should probably update Moralis + React. I did so, but that caused a more serious problem:
ERROR in ./node_modules/react-moralis/lib/index.esm.js 3:0-39
Module not found**:** Error**: Canât resolve âmoralis-v1â in â/Users/davidmacfadyen/Medium-Final/node_modules/react-moralis/libâ**
So I deleted everything and went back to square one:
What causes this issue?
davidmacfadyen@David16 ~ % yarn start
**yarn run v1.22.19**
warning package.json: No license field
error Command "start" not found.
info Visit **https://yarnpkg.com/en/docs/cli/run** for documentation about this command.
(that URL doesnât contain the solution â or the yarn start
command, sadly)
I tried yarn
add react-scripts
â but that doesnât help. In fact this generates the following:
**yarn run v1.22.19**
warning ../package.json: No license field
$ react-app-rewired start --scripts-version react-scripts
/bin/sh: react-app-rewired: command not found
error Command failed with exit code 127.
Building back from square one might help me to isolate the problem, but this:
error Command âstartâ not found.
is remarkably widespread and generates countless possible/contradictory suggestions on Stack. I added these lines to the package.json, but to no effect
âscriptsâ: {
âstartâ: âreact-app-rewired start --scripts-version react-scriptsâ,
âbuildâ: âreact-app-rewired build --scripts-version react-scriptsâ,
âtestâ: âreact-app-rewired test --scripts-version react-scriptsâ,
âejectâ: âreact-app-rewired ejectâ,
âlint:checkâ: âeslint .â,
âlint:fixâ: âeslint --fixâ,
âprettier:checkâ: âprettier --check .â,
âprettier:fixâ: âprettier --write â**/*.{js,jsx,ts,tsx,css,md,json,html}â .prettierrc --config ./.prettierrcâ,
âformatâ: ânpm run lint:fix && npm run prettier:fixâ
},