Forum Discussion

mrogunlana's avatar
mrogunlana
Frequent Visitor
7 years ago
Solved

Custom Visual Setup Exceptions (pbi-visuals-api 2.2.2, pbi-visuals-utils-dataviewutils 1.5.0)

HI All,   I get the following exception when running pbiviz on a new visual c:\Projects\visuals\powerbi\test2>pbiviz start info Building visual... error TYPESCRIPT /visualPlugin.ts : (8,103) Prope...
  • mrogunlana's avatar
    7 years ago

    Ok, I answered my own question: for all those risk takers out there willing to take a deep dive into powerbi-visuals-tools 3.0, but have an older version installed pay close attention to this article: https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0/ with special emphasis on the section titled: "How to install powerbi-visuals-tools@beta"

     

    What this article fails to mention is that if you have an existing version of the tools installed globally on npm, instead of simply running the command:

     

     

    npm install powerbi-visuals-tools@beta

     

     

    You must update your global instance as well with: 

     

     

    npm install powerbi-visuals-tools@beta -g

     

    Make sure you includ the global flag "-g" to update your local toolset. Then, create a new visual like so:

    pbiviz new {name}

    and run it with the following command: 

     

    npm run start

     

    and you will see the new webpack runner in the command window.

     

    **note: I had to update my security certificate as well with:

     

    pbiviz --install-cert

    follow the prompts after you run this command and you should be good to go. Hopefully this helps someone :)