property forEach does not exist on type NodeListOf
Just add "dom.iterable"
to tsconfig.json
, so that it looks somewhat like this:
{
"compilerOptions": {
"lib": [
"es6",
"dom",
"dom.iterable"
],
...
You need to convert it to an array:
const frameZones = Array.from(document.querySelectorAll('path.frame-zone'));
frameZones.forEach((...) => {});