cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
magtuto Regular Visitor
Regular Visitor

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Typescript Error Developing Your First PowerBI Visual

@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.
3 REPLIES 3
Community Support Team
Community Support Team

Re: Typescript Error Developing Your First PowerBI Visual

@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.
surfersamu Regular Visitor
Regular Visitor

Re: Typescript Error Developing Your First PowerBI Visual

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'.

 

Moderator v-viig
Moderator

Re: Typescript Error Developing Your First PowerBI Visual

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