Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Can't use Vue with API 3.2.0.

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)?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.