Forum Discussion

magtuto's avatar
magtuto
Helper I
9 years ago
Solved

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.

 

 

Eric

3 Replies

Replies have been turned off for this discussion
  • v-chuncz-msft's avatar
    v-chuncz-msft
    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.

    • surfersamu's avatar
      surfersamu
      Helper II

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

       

      • v-viig's avatar
        v-viig
        Community Champion

        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

        [email protected]