Can you please try wiping your:
- .cache
- build
- node_modules
- package-lock.json
- yarn.lock
files/folders, then reinstall the node modules with either yarn install or npm install and rebuild/restart the Strapi server.
If that doesn’t work, can you try providing a sample project where you can reproduce the issue?