I tried upgrading react scripts to 4.0.1 and type script to "4.1.3" and react to "17.0.1". I deleted the node_modules and lock files, then installed again with yarn install command. When I run yarn start,
I get error ReferenceError: Cannot access 'middleware' before initialization
When I set FAST_REFRESH=false in .env file app loads with no issues, So it is something with react refresh
