Forum Discussion
stevensi1018
8 years agoRegular Visitor
Uncaught ReferenceError: pbi is not defined
I'm trying to put my report on my web application but I keep getting multiple errors. I found the following code online. I already have my accessToken in another variable in my web page but everytime...
- 8 years ago
I fixed this by including <script type="text/javascript" src="(server name)/public/assets/js/powerbi.js""></script> this in my script.
Eric_Zhang
8 years agoMicrosoft Employee
I don't know about Typescript or Angular, however per my research, that error "Uncaught ReferenceError: pbi is not defined" is a common issue, which indicates the powerbi-client may not be correctly referenced in this case. As to the solution, you can the common solutions.
MawashiKid may have more constructive advice.
stevensi1018
8 years agoRegular Visitor
I fixed this by including <script type="text/javascript" src="(server name)/public/assets/js/powerbi.js""></script> this in my script.