Error: Unable to locate 'react/lib/React' in the react-dom folder

I get a compile error: ‘Module not found: Can’t resolve react/lib/React’ in my React app. Here is a new package configuration. How can I resolve this?

{
  "appName": "eShopClient",
  "appVersion": "1.0.0",
  "private": true,
  "deps": {
    "react": "17.0.1",
    "react-dom": "17.0.1"
  },
  "scripts": {
    "startDev": "react-scripts start"
  }
}

hey, seems like ur code is using old paths. in react 17, there’s no need for react/lib/React. just use ‘react’ in your imports and update any legacy code references. hope this helps fix it, cheers!