WebGLRenderer.d.ts: Error after update to r109

Hey, I updated to r109 in Angular 7 and got this error.

ERROR in node_modules/three/src/renderers/WebGLRenderer.d.ts(34,31): error TS2304: Cannot find name ‘OffscreenCanvas’.

How to get rid of it?

There is already an issue about this here:

What version of TS are you using in your project?

My Typescript version is 3.3.3

Can you solve the issue by upgrading to 3.6.3? This is the version used in three.js.

I tried upgrading Typescript to 3.6.3 and 3.6.4. Still getting the same error

Strange. When linting the TS files via tsc (by running this command in the three.js repository), everything is fine.

Does it work if you add this npm package to your project?

Yep, that did the trick. Thanks!