Quantcast
Viewing all articles
Browse latest Browse all 48285

report.off is not a function

Hi,

 

I am attempting to embed a report in my MVC project but I keep getting a stream of Javascript errors attempting to embed a report. The wierd thing is that the report is embedded and seems to be working fine, but on looking at my browser dev console I see errors. As the report is embedded and "working", I know that the following is fine: 

 

 

 var report = powerbi.embed(reportContainer, config);

 

 

The errors occur after this line any of the event handlers like report.on or report.off. error received: 

 

 

Uncaught TypeError: report.on is not a function
at HTMLDocument.<anonymous> (Report?reportId=xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxx:xxx)
at fire (jquery-1.10.2.js:3062)
at Object.fireWith [as resolveWith] (jquery-1.10.2.js:3174)
at Function.ready (jquery-1.10.2.js:447)
at HTMLDocument.completed (jquery-1.10.2.js:118)

 

 

...for the following lines:

 

 

report.on("loaded", function () {
console.log('report.on - loaded');
}); 

 

 

I am also receiving a permanent error which appears on embedding the report (powerbi.embed) of:

 

 

TypeError: Cannot read property 'replace' of undefined
at Function.Utils.raiseCustomEvent (util.ts:22)
at PowerBi.onReceiveMessage (core.ts:197) []

 

 

 

 

Any help would be much appreciated?

 

Thanks,

Tristan

 

 

 

 


Viewing all articles
Browse latest Browse all 48285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>