'Power BI Gantt 2.2.3 Visualization compilation error in VS Code

i'm trying to customize the Gantt Chart visualization available in Power BI, but i'm running into errors while even getting the visualization to run.

here's the link to the source code in Github: https://github.com/microsoft/powerbi-visuals-gantt

i'm running v5.9.7 of the d3 library and updated the @types/d3 to 5.16.4 to solve some issues (d3.event was not being recognized, so i followed this link - Type errors for d3js in Angular ( Latest )).

i was still getting the following error messages in Powershell:

Error Log Screenshot

i managed to resolve the error with textMasurementService by modifying the line in the index.d.ts file from:

import { textMeasurementService } from "./textMeasurementService";

to:

import * as textMeasurementService from "./textMeasurementService";

but how do i fix the error with the textProperties? From what i've understood so far, the parameter textProperties is used within individual methods but is never returned. should that be added here?

please help. thanks in advance! :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source