I'm using @material-ui/core
version 4.11.3
and I'm not seeing that error with TransitionProps
imports. When stuff like this happens I usually go through these steps, stopping after each to see if it resolved the issue:
- Verify you spelled everything correctly (this is a good case for using copy/paste and copying the import from that working codesandbox)
- Restart the TypeScript server (in VSCode with a
.ts
or .tsx
file open in the editor: Shift + Cmd + P
, "Typescript: Restart TS server")
- Clean
- Delete
node_modules
and and any build directories (ex: if using NextJS, delete the .next
folder, if Gatsby delete .cache
folder, etc)
- Run yarn or npm install
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…