document.querySelectorAll(...).map is not a function code example
Example: document queryselectorall and map javacript
[...document.querySelectorAll('div')].map(x => console.log(x.innerHTML))
[...document.querySelectorAll('div')].map(x => console.log(x.innerHTML))