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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
magtuto
Helper I
Helper I

Typescript Error Developing Your First PowerBI Visual

Im new to Power BI and I have started doing the tutorials on Github called "Developing Your First Power BI Visual".

 

I am just stuck on one issue at the moment, I have managed to fix some of the typescript errors  related to d3-typings by following the installation instructions on Github. 

 

However, I am still getting errors (see below) and I am not sure what to do next. Is this related to other external library that I am missing.

 

typescripterror.PNG

 

Eric

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@magtuto,

 

I can run the project Sample Bar Chart. According to the error message, you need to specify related .ts file in tsconfig.json by using the "files" property.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@magtuto,

 

I can run the project Sample Bar Chart. According to the error message, you need to specify related .ts file in tsconfig.json by using the "files" property.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

How do you specify related .ts file in tsconfig.json by using the "files" property?

 

This is the only error I have but I don't have that /visualPlugin.ts anywhere

TYPESCRIPT  /visualPlugin.ts : (8,147) Property 'Visual' does not exist on type 'typeof demo49B92E39CFB047F59CF0F0DEF084AE31'.

 

visualPlugin.ts is auto-generated file. You can take a look at this file in ".tmp/precompile".

 

Could you please clarify a name of class that implements IVisual interface?

Please note that the same class name must be specified in visualClassName property of pbiviz.json.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.