microsoft / microsoft/powerbi-visuals-api
Upgrade from 3.8 to 4.6 renders nothing
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 108
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I am experiencing issues when upgrading existing visuals that used api version 3.8 to 4.6. After adding privileges to capabilities.json the visual compiles fine. However, nothing renders in the visual sandbox.
I have added logs to both the visual constructor and update function, but it seems those are never called. I decided to give the demo visual a go and I am having the same troubles with that one.
I have powerbi-visuals-tools version - 4.0.5 installed
All I did is:
pbiviz new CircleCard- deleted
package-lock.json, - changed
"powerbi-visuals-api": "~3.8.0"to"powerbi-visuals-api": "~4.6.0",inpackage.json - changed
"apiVersion":"3.8.0"to"apiVersion":"4.6.0"inpbiviz.json - hit
npm install - added
"privileges: []"tocapabilities.json - hit
pbiviz start
The result is webpack 5.73.0 compiled successfully in 3506 ms
However, when I try to load the visual in the developer visual in PowerBi.com, it renders blank. When I change the api version back to 3.8 it renders just fine...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the blank visual with the listed pbiviz new, npm install, and pbiviz start steps. Compare package.json, pbiviz.json, and capabilities.json between API versions 3.8.0 and 4.6.0, then inspect the demo visual and browser or sandbox output. Done means an upgraded visual loads and renders in the Power BI developer visual.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100