[A beginner with Reactjs] What I did:
- Everything worked fine
- Installed http-proxy-middleware dependency
- Now I receive the error below even after removing http-proxy-middleware
- Following another answer, also tried: cleaning npm cache, removing package-lock.json, reinstall node-modules (in both server and client folder as I wasn't sure)
error:
require(...) is not a function
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the client@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Any help resolving this? :)