With a little more information, we can narrow down what's going on here.
Are you able to share the contents of your package.json
dependencies?
useId
was released in React 18, I wonder if you are using an earlier version of React that @mui is trying to use, but the React version does not match.