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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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