In my case, there were two files named the same: theme.ts and theme.d.ts, and changing theme.d.ts to something different worked. 🤷
theme.ts
theme.d.ts