Hi I have
Version 4.9.5 of typescript
In my figma plugin, I did
npm install -g typescript
npm install --save-dev @figma/plugin-typings
And my plugin worked fine.
As in this link
figma.comI need to add TextDecoder for SVG export. It says, for TextDecoder, I need to add DOM to tsconfig.json.
I added it.
After that, index.js complains…
const console: Console
Cannot redeclare block-scoped variable ‘console’.ts(2451)
Cannot redeclare block-scoped variable ‘fetch’.ts(2451)
View Problem (Alt+F8)
const fetch: (url: string, init?: FetchOptions) => Promise
How to fix this?