Home → Cannot augment module 'console' with value exports because it resolves to a non-module entity.
Cannot augment module 'console' with value exports because it resolves to a non-module entity.
Published: 2/15/2023
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à!