HomeCannot 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à!

About Code with Node.js

This is a personal blog and reference point of a Node.js developer.

I write and explain how different Node and JavaScript aspects work, as well as research popular and cool packages, and of course fail time to time.