microsoft / powerbi-client-vue-js

Power BI Vue.js component. This library lets you embed Power BI report, dashboard, dashboard tile, report visual, or Q&A in your Vue.js application.
Other
172 stars 24 forks source link

vue/demo cannot run #6

Open jojoname opened 1 year ago

jojoname commented 1 year ago

vue/demo

npm run demo error message Uncaught SyntaxError: Unexpected token . App.vue:48

How to modify it to run

jojoname commented 1 year ago

vue/demo

npm 运行演示错误消息未捕获语法错误:意外令牌 。应用:48

如何修改它以运行

OK Demo can only be run in Edge browser

bapat-atharva commented 1 year ago

Not sure why you are getting the error, we are able to run the demo in Edge, Chrome, Firefox. Please let us know if you have any additional details.

470772345 commented 1 year ago

image

After clone this rep, npm install , npm run demo ,but run some wrong; ?

KotanaSai21 commented 1 year ago

@470772345 , It seems, powerbi-client-vue-js package is not installed.

If you're inside the vue folder, Try these commands to run the demo app.

npm run install:demo
npm run demo

If you're inside the demo folder, Try these commands to run the demo app.

npm i
npm run demo

Feel free to reach out to us, if you have any other queries.

470772345 commented 1 year ago

@470772345 , It seems, powerbi-client-vue-js package is not installed.

If you're inside the vue folder, Try these commands to run the demo app.

npm run install:demo
npm run demo

If you're inside the demo folder, Try these commands to run the demo app.

npm i
npm run demo

Feel free to reach out to us, if you have any other queries.

Thanks for your help, it's already good。

470772345 commented 1 year ago

Hello, currently I embed a PowerBIReportEmbed for each menu page, when I switch menus, I use cache for each page, but it triggers an update every time, is there a configuration can it not trigger every time

v-MadhavC commented 1 month ago

When embedding multiple reports, it's recommended to use the same iFrame for each report instead of creating a new iFrame each time. You should use powerbi.embed(element, config) with different configurations to replace the previous report. For more details you can refer to this documentation: Best practices for faster performance in Power BI embedded analytics - Power BI | Microsoft Learn

To better understand the issue, could you provide what you are caching and what specifically triggers the update? Are there specific calls or re-renders occurring?

v-MadhavC commented 1 week ago

We are waiting for your response. If no response is received within the next couple of weeks, the issue will be closed.