Forum Discussion
Custom Visual After pbiviz package Giving Error
- 8 years ago
Thank you Ignat Vilesov for your help,
For other people who takes same error :
Ignat's solution : rename namespace to module in settings.ts and visual.ts.
TypeScript namespaces are not supported yet. Please always use modules instead.
- Did you add settings.ts into tsconfig.json? How did you declare Settings class?
- Yes, you should use PascalCase in TypeScript as per name convention.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- d_u_a8 years agoHelper I
As you see there are some errors in visualPlugins.ts . When i start a new project it's working couple times but after that starting to giving errors :
Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (69,55) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (70,14) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (70,48) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (86,14) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (87,26) Cannot find name 'VisualSettings'.
error TYPESCRIPT /visualPlugin.ts : (8,153) Property 'KPITest' does not exist on type 'typeof kpiPowerBi3255EHow can i fix problems in above image ?
Should i change class : 'Visual' to class: 'MyClassName' in visualPlugin.ts ? Because i changed my class name only in visual.ts and pbiviz.json files .- v-viig8 years agoCommunity Champion
Could please share source code to investigate this issue?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- d_u_a8 years agoHelper I
This is my tsconfig.json file and setting.ts is already declared in it .