Forum Discussion

keerthanabasa's avatar
keerthanabasa
Regular Visitor
7 months ago
Solved

Render React Component inside Power BI visual

We are trying the bundling approach. Here is how we are rendering the component(index.tsx): import * as React from "react"; import { createRoot, Root } from "react-dom/client"; import Componen...
  • rohit1991's avatar
    7 months ago

    Hii keerthanabasa 

     

    Power BI custom visuals run inside a strict sandboxed iframe, which blocks loading external or dynamically created Web Workers (including worker.js) due to origin and CSP restrictions (origin 'null'). Even if the worker file is bundled or hosted under app.powerbi.com, Power BI does not allow custom visuals to spawn separate worker scripts. Only inline JS and bundled assets executed on the main thread are supported. This limitation is by design, so using Web Workers in this way is fundamentally not supported in Power BI custom visuals.