Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
d_u_a
Helper I
Helper I

Custom Visual After pbiviz package Giving Error

1)I 'm creating pbiviz package then importing it to app.powerbi.com in first time it's not giving any error but second or third trying to generate package it's giving these errors - ( I am using the same name in visualClassName which in pbiviz.json and in my class which one in visual.ts but issue is still continue ) :

 

error TYPESCRIPT /src/visual.ts : (32,23) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (60,55) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (61,14) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (61,48) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (72,14) Cannot find name 'VisualSettings'.
error TYPESCRIPT /src/visual.ts : (73,26) Cannot find name 'VisualSettings'.
error TYPESCRIPT /visualPlugin.ts : (8,156) Property 'PowerKpi' does not exist on type 'typeof denemePowerBIE1D441


2)In setting.ts dataPointSettings class is giving error Class Name must be in a pascal case - Should i change this default class name to Pascal Case?

1 ACCEPTED SOLUTION
d_u_a
Helper I
Helper I

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. 




View solution in original post

5 REPLIES 5
d_u_a
Helper I
Helper I

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. 




v-viig
Community Champion
Community Champion

  1. Did you add settings.ts into tsconfig.json? How did you declare Settings class?
  2. Yes, you should use PascalCase in TypeScript as per name convention.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

settingTs.PNG

 

This is my tsconfig.json file and setting.ts is already declared in it .

VisualStettingsProblem.PNG                                                           

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 kpiPowerBi3255E

 

How 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-viig
Community Champion
Community Champion

Could please share source code to investigate this issue?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.