0👍
✅
I found a similar question to mine on StackOverflow and followed the answer given by Paweł Ciucias. I had to manually add the lib to the tsconfig.json file under ‘compileroptions -> types’
"types": [
"webpack-env",
"jest",
"w3c-image-capture"
],
The error now disappeared!
Source:stackexchange.com