Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error #267

Open
rotor-58 opened this issue Apr 20, 2022 · 0 comments
Open

Compilation error #267

rotor-58 opened this issue Apr 20, 2022 · 0 comments

Comments

@rotor-58
Copy link

rotor-58 commented Apr 20, 2022

Hello!
i'm new here and also new in developing PowerBI visualizations. i've tried installing and running the Gantt-chart visualization, but i'm getting the same errors as mentioned by @smilekudo in this link, viz., the ones with textMeasurementService and textProperties:

#198 (comment)

here's my message log from powershell:

ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts
./src/gantt.ts 83:28-42
[tsl] ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts(83,29)
TS2694: Namespace '"C:\Users\powerbi-visuals-gantt-master\node_modules\powerbi-visuals-utils-formattingutils\lib\src\textMeasurementService".textMeasurementService' has no exported member 'textProperties'.
@ ./.tmp/precompile/visualPlugin.ts 1:0-40 10:12-17 11:23-28

ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts
./src/gantt.ts 85:36-58
[tsl] ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts(85,37)
TS2339: Property 'textMeasurementService' does not exist on type 'typeof textMeasurementService'.
@ ./.tmp/precompile/visualPlugin.ts 1:0-40 10:12-17 11:23-28

ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts
./src/gantt.ts 85:36-58
[tsl] ERROR in C:\Users\powerbi-visuals-gantt-master\src\gantt.ts(85,37)
TS2694: Namespace '"C:\Users\powerbi-visuals-gantt-master\node_modules\powerbi-visuals-utils-formattingutils\lib\src\textMeasurementService".textMeasurementService' has no exported member 'textMeasurementService'.
@ ./.tmp/precompile/visualPlugin.ts 1:0-40 10:12-17 11:23-28

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! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant