Forum Discussion
Update Custom Visuals API
- 5 years ago
Agreed - the latest published version on NPM is 3.4.0, but the GitHub repo is indicating there's a commit for version 3.5.0, which contains the conditional formatting changes... looks like this hasn't made it to NPM yet, which is a bit of a problem for people that have seen the release notes and want to try it for themselves
Hi Husain,
When the SDK and API were released as the same package (prior to v3), pbiviz update would handle he download/apply of the API automatically, but since they've been split into powerbi-visuals-tools (SDK) And powerbi-visuals-api (API) node packages, I think you would still need to install the correct version of powerbi-visuals-api from NPM into your project first, e.g.:
npm i powerbi-visuals-api@latest
If it doesn't work after that, I'd suggest manually changing your pbiviz.json to the new version number so you can start working with the new version, and raise an issue over on the SDK repo, so the team can provide an official response, or take a look at why this isn't working currently in the meantime. It might even be that the process has changed and they need to update the documentation.
Regards,
Daniel
- Husain5 years agoAdvocate I
I was trying to experiment with new conditional formatting feature
Conditional formatting - Power BI | Microsoft Docs
But I am getting this error which makes me think that latest api might not be installed- dm-p5 years agoSuper User
Agreed - the latest published version on NPM is 3.4.0, but the GitHub repo is indicating there's a commit for version 3.5.0, which contains the conditional formatting changes... looks like this hasn't made it to NPM yet, which is a bit of a problem for people that have seen the release notes and want to try it for themselves