I have noticed that removing the "./node_modules/@types" from the typeRoots in tsconfig.json no longer launches this error but then will not work with the imports.
p6:55:50 PM] Starting compilation in watch mode...
node_modules/@figma/plugin-typings/index.d.ts:10:9 - error TS2451: Cannot redeclare block-scoped variable 'console'.
10 const console: Console
~~~~~~~
node_modules/@types/node/globals.d.ts:157:9
157 var console: Console;
~~~~~~~
'console' was also declared here.
node_modules/@types/node/console.d.ts:415:19
415 namespace console {
~~~~~~~
and here.
node_modules/@types/node/console.d.ts:449:13
449 var console: Console;
~~~~~~~
and here.
node_modules/@figma/plugin-typings/index.d.ts:27:9 - error TS2451: Cannot redeclare block-scoped variable 'fetch'.
27 const fetch: (url: string, init?: FetchOptions) => Promise<FetchResponse>
~~~~~
node_modules/@types/node/globals.d.ts:454:14
454 function fetch(
~~~~~
'fetch' was also declared here.
node_modules/@types/node/console.d.ts:415:19 - error TS2451: Cannot redeclare block-scoped variable 'console'.
415 namespace console {
~~~~~~~
node_modules/@figma/plugin-typings/index.d.ts:10:9
10 const console: Console
~~~~~~~
'console' was also declared here.
node_modules/@types/node/console.d.ts:449:13 - error TS2451: Cannot redeclare block-scoped variable 'console'.
449 var console: Console;
~~~~~~~
node_modules/@figma/plugin-typings/index.d.ts:10:9
10 const console: Console
~~~~~~~
'console' was also declared here.
node_modules/@types/node/console.d.ts:451:25 - error TS2339: Property 'console' does not exist on type 'typeof globalThis'.
451 export = globalThis.console;
~~~~~~~
node_modules/@types/node/globals.d.ts:157:9 - error TS2451: Cannot redeclare block-scoped variable 'console'.
157 var console: Console;
~~~~~~~
node_modules/@figma/plugin-typings/index.d.ts:10:9
10 const console: Console
~~~~~~~
'console' was also declared here.
node_modules/@types/node/globals.d.ts:454:14 - error TS2451: Cannot redeclare block-scoped variable 'fetch'.
454 function fetch(
~~~~~
node_modules/@figma/plugin-typings/index.d.ts:27:9
27 const fetch: (url: string, init?: FetchOptions) => Promise<FetchResponse>
~~~~~
'fetch' was also declared here.
-6:55:51 PM] Found 7 errors. Watching for file changes.