cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
twastvedt
Frequent Visitor

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
twastvedt
Frequent Visitor

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
twastvedt
Frequent Visitor

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

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Kudoed Authors