This error message appears when typings are exposed globally, yet TypeScript tries to validate module typings and the names conflict.
I got this with a Figma widget module @figma/plugin-typings
, and the solution was quite simple – add this to your .tsconfig.json
:
{
"compilerOptions": {
...
"skipLibCheck": true,
...
Et voilà!