powerbi-client-vue-js is a lightweight Vue.js wrapper library designed to streamline the integration of Microsoft Power BI reports, dashboards, and tiles into Vue applications. It provides high-level Vue components that abstract the complexities of directly interacting with the underlying `powerbi-client` JavaScript library, enabling developers to declaratively embed Power BI content. The current stable version is `1.1.2`. The project maintains an active release cadence, typically providing updates every few months to introduce new features, address bugs, and update dependencies. Its primary differentiator is the seamless integration with Vue's reactivity system, offering a more 'Vue-idiomatic' approach to Power BI embedding compared to direct SDK usage.
npm install powerbi-client-vue-jsVerified import paths — ran on the pinned version, not inferred.
This quickstart embeds a Power BI report into a Vue.js component using the PowerBIReport component, configuring its essential properties like ID, embed URL, and access token, while providing basic styling for the container.
Review the latest documentation or source code for the paginated report component's expected props and types and update your usage accordingly.
Upgrade to `powerbi-client-vue-js` v1.0.3 or higher to benefit from updated and corrected TypeScript types. Ensure your `tsconfig.json` is correctly configured for library consumption.
Implement a server-side endpoint to generate fresh embed tokens. Pass these tokens to the PowerBI component's `accessToken` prop, and consider listening to the `tokenExpired` event from the embed instance to trigger a token refresh programmatically.
Ensure you are passing a valid `embedConfig` object with at least `type`, `id`, `embedUrl`, `accessToken`, and `tokenType` properties to the PowerBI component.
Provide a valid, non-empty Power BI embed token for the `accessToken` property. This token should be securely fetched from your backend.
Verify that `PowerBIReport` is listed in the `components` property of your Vue component and that its usage in the `<template>` matches the imported name (e.g., `<PowerBIReport />`).
Double-check the `embedUrl` and `id` in your `embedConfig`. Ensure your Power BI embed token (accessToken) is generated with the correct scope and permissions for the report you are trying to embed.