Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I've been working on updating our visuals from the 2.6.2 API to 3.2.0. Everything is going smoothly except for a couple visuals which use Vue. These were working smoothly under 2.6.2 but now display nothing. In development mode I get the console notice that Vue is loading in development mode, but otherwise no console notices, and none of my code, neither in the visual.ts constructor or the update function, is ever run.
One key difference in these visuals (besides using Vue) is that they use the powerbi-visuals-webpack-plugin package to roll their own webpack configuration. Our webpack file is very similar to the template in the package's readme, with bits added for Vue compilation.
I ran a diff on the .tmp folders created when the two versions are built and the output is exactly the same except for the API version number.
Is there a difference in the way Power BI treats visuals declaring the 3.2.0 API (besides enabling some features)?
Solved! Go to Solution.
Turns out this had nothing to do with Vue. At 3.2 the way Power BI consumes visual code changed, so some different config is necessary. This is detailed in the readme for the powerbi-visuals-webpack-plugin, though I found I needed an additional change to get everything working: https://github.com/microsoft/powerbi-visuals-webpack-plugin/issues/59.
Turns out this had nothing to do with Vue. At 3.2 the way Power BI consumes visual code changed, so some different config is necessary. This is detailed in the readme for the powerbi-visuals-webpack-plugin, though I found I needed an additional change to get everything working: https://github.com/microsoft/powerbi-visuals-webpack-plugin/issues/59.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |