Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
After doing an npm install of "powerbi-client" and importing the module into a vue component
import * as pbi from "powerbi-client";
I can not access methods such as pbi.embed() that exist. I'm not sure if this is possible without a wrapper similar to the react wrapper that was created but if anyone has any feedback on integrating PowerBI with Vue 3 it would be very helpful.
Solved! Go to Solution.
Hi @Anonymous ,
Please try to add the below codes to declare the reference to the corresponding method of Power BI, you can also refer the content in the following links to get it:
// Grab the reference to the div HTML element that will host the report
let reportContainer = <HTMLElement>document.getElementById('reportContainer');
// Embed the report and display it within the div container
let powerbi = new pbi.service.Service(pbi.factories.hpmFactory, pbi.factories.wpmpFactory, pbi.factories.routerFactory);
let report = powerbi.embed(reportContainer, config);
Power BI embed + VueJS error: “TypeError: Cannot read property 'powerBiEmbed' of null”
How To Embed Power BI Report In Angular 6
Best Regards
Hi @Anonymous ,
Please try to add the below codes to declare the reference to the corresponding method of Power BI, you can also refer the content in the following links to get it:
// Grab the reference to the div HTML element that will host the report
let reportContainer = <HTMLElement>document.getElementById('reportContainer');
// Embed the report and display it within the div container
let powerbi = new pbi.service.Service(pbi.factories.hpmFactory, pbi.factories.wpmpFactory, pbi.factories.routerFactory);
let report = powerbi.embed(reportContainer, config);
Power BI embed + VueJS error: “TypeError: Cannot read property 'powerBiEmbed' of null”
How To Embed Power BI Report In Angular 6
Best Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
7 | |
7 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |