figma / plugin-typings

Typings for the Figma Plugin API
MIT License
195 stars 45 forks source link

Cannot augment module 'console' #101

Closed florianb closed 2 years ago

florianb commented 2 years ago

I have no clue why this error pops up or why my setup seems to be the only one complaining about this. The only fix i could imagine was adding a @ts-ignore above the index.d.ts:11:9.

node_modules/@figma/plugin-typings/index.d.ts:11:9 - error TS2649: Cannot augment module 'console' with value exports because it resolves to a non-module entity.

11   const console: Console
           ~~~~~~~
glebsexy commented 2 years ago

Probably related:

https://github.com/figma/plugin-typings/issues/96

https://github.com/figma/plugin-typings/issues/90

florianb commented 2 years ago

Thank you @zyumbik – i fixed it adding

...
    "skipLibCheck": true,
...

to my tsconfig.json.

florianb commented 2 years ago

No clue if this is how things should work in the TS world. :smiling_face_with_tear: