I'm currently using the Power BI Visuals API to transfer my D3 chord diagram into a power bi visual. I've been using the Microsoft Chord GitHub Repo as a starting reference. I'm creating the supporting classes, but I'm getting errors returned in my version even when I use the same code from the microsoft repo.
Looking specifically at the 'columns.ts' file, when I copy the code as is from the github, I get errors on the 'let varName: type = x' lines saying that undefined cannot be assigned to DataViewTable type. But I cloned the entire repository from Microsoft, and I don't get those errors when I import their file directly.
Code is exactly the same. Cloned from GitHub Copied from GitHub to my project
I've tried adding try catch statements, if else checks, and I've also tried the non-null assertion operator where I can - but I still run into issues in the functions that return null. I just don't understand why the same code will provide errors in one location.