this page might help you migrate from react 16 to 17. React 17
this problem can also be because of the migration while working. I think react-script doesn't work well while migrating. so trying a restart might help as well.
check the log and if you find something. please share it with us so we can understand better.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…