Forum Discussion

luojiandanPBI's avatar
2 years ago
Solved

circlecard after update,can't start...

I create a visual by following step:

Learn how to develop your own Power BI visual using the circle card visual as an example. - Power BI | Microsoft Learn

and my pbiviz version is:3.1.9

then,I run two npm install ......

npm install powerbi-visuals-api@latest
npm install powerbi-visuals-utils-dataviewutils@latest

and I get new version

powerbi-visuals-api version: 5.4.0
powerbi-visuals-utils-dataviewutils version: 6.0.1

 

Then,I run "pbiviz start",and get this: powerbi-visuals-api version change to 2.6.0.

what's the reason?

 

finally,I run 'pbiviz start' again,and get this:

 

what should I do?

Thanks:)

Anonymous 

 

  • Hi luojiandanPBI,

     

    The API version is governed by what's in your pbiviz.json file, e.g.:

    {
      ...
      "apiVersion": "5.3.0",
      ...
    }

    When you run pbiviz start, the tools look at the version you're specifying in that file and then executes an npm i command for the appropriate version of powerbi-visuals-api. Therefore installing it manually will only keep it current in your package.json until this process overwites it.

     

    Regards,

     

    Daniel

6 Replies

  • dm-p's avatar
    dm-p
    Super User

    Hi luojiandanPBI,

     

    The API version is governed by what's in your pbiviz.json file, e.g.:

    {
      ...
      "apiVersion": "5.3.0",
      ...
    }

    When you run pbiviz start, the tools look at the version you're specifying in that file and then executes an npm i command for the appropriate version of powerbi-visuals-api. Therefore installing it manually will only keep it current in your package.json until this process overwites it.

     

    Regards,

     

    Daniel

    • luojiandanbi's avatar
      luojiandanbi
      New Member

      dm-p 

      hi,Daniel,you are right,thanks for you help...🤝

      but nothing happen in Developer Visual.

      here is version:

      I do nothing except update "powerbi-visuals-api" and "powerbi-visuals-utils-dataviewutils" version after create new visual by "pbiviz new circleCard".

      can you give me your hands.

  • "powerbi-visuals-api": "~2.6.1",
    "powerbi-visuals-utils-dataviewutils": "2.2.1"   is ok.

    I want to update to latest version,and got error.