Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
Hello,
i want to create some buttons and a dropdown menu with bootstrap and jquery, but how can i add them to my visual?
cause when add the files to my pbiviz file and run the code, i am getting a bootstrap error that jQuery wasnt found
"Uncaught Error: Bootstrap's JavaScript requires jQuery"
my pbiviz looks like this:
"externalJS": [
"node_modules/jquery/dist/jquery.min.js",
"src/source/bootstrap.min.js",my tsconfig like this:
"files": [
".api/v1.8.0/PowerBI-visuals.d.ts",
"node_modules/@types/jquery/index.d.ts",
"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
"src/settings.ts",
"src/visual.ts",
"src/javascript.js"how can get it running?
Solved! Go to Solution.
thanks but this didnt work for me. i still got a error after doing that.
I got it working with installing jquery with "typings install --save --global jquery" instead of "npm install @types/jquery@2.0.46 --save"
i just needed to referrenc the .d.ts file inside typings and i got it working.
You may check the solution below.
https://community.powerbi.com/t5/Developer/Custom-visual-jquery-and-other-js/td-p/155443
thanks but this didnt work for me. i still got a error after doing that.
I got it working with installing jquery with "typings install --save --global jquery" instead of "npm install @types/jquery@2.0.46 --save"
i just needed to referrenc the .d.ts file inside typings and i got it working.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |