Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Microsoft PowerBi-Javascript NuGet package : WHERE ARE THE FILES?

https://github.com/microsoft/PowerBI-JavaScript

We installed the NuGet package in our PowerBI Embedded project... The readme states to use:

 

<script src="/powerbi-client/dist/powerbi.js"></script>

 Which simply doesn't exist.  Their github of course has "issues" shut down so there's zero way to communicate with the team that built said NuGet package. 

 

Can someone who worked on this NuGet package please let us know how to reference said files that upgrading said NuGet package?

 

4 REPLIES 4
Anonymous
Not applicable

+1 

What is the purpose of the Microsoft.PowerBI.JavaScript nuget package?  How do we reference powerbi.js when using this package?

Please provide working code samples that use this package.

 

Anonymous
Not applicable

What we ended up doing is installing the NuGet package in the project, then pulling the raw files out of the .nuget folder in your user directory for this package and manually putting them into our project.  Super annoying, but it's working for now.

Anonymous
Not applicable

Direct quote from their readme:

However, the library is exported as a Universal Module and the powerbi.js script can be included before your app's closing </body> tag as:

<script src="/powerbi-client/dist/powerbi.js"></script>

When included directly, the library is exposed as a global named powerbi-client. There is also another global named powerbi which is an instance of the service.

 

========

 

This simply is incorrect, this doesn't exist and we need to know how to find the files the NuGet package updates.

Anonymous
Not applicable

So looking at the PowerBi Javascript playground I see this in the source:

../node_modules/jquery/dist/jquery.js

../node_modules/es6-promise/dist/es6-promise.js

../node_modules/powerbi-client/dist/powerbi.js

 

This appears to be the preferred way to setup these libraries in our project, how do we do this?  We cannot find a single doc anywhere that describes setting up these modules via ES6.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.