cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Wave Release 2

Check out the updates in Power BI.

Overview of Power BI 2020 release wave 2!

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

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.

Top Solution Authors
Top Kudoed Authors