Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Is it possible to use .js files inside a custom visual? Every time I try to make .js files that contains React component i get the following error
Also if I rename file from .js to .tsx everything works fine. I tried to install babel and diffrent types of loaders but I get the same error.
HI @DevForDay,
You can take look at the following link about add external library support in custom visual:
Adding external libraries to Power BI visuals - Power BI | Microsoft Learn
Regards,
Xiaoxin Sheng
This does not fix my problem. I Want to write my custom code and store it as .js file. This link is just an explanation for adding external libraries which does not fix my problem.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 |