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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
hungvuong1003
Frequent Visitor

ES6 to javascript backwards compatible

When trying to load the embedded report in the Chrome version 44, I met this issue

 

reportEmbed:104 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
reportEmbed:257 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
reportEmbed:478 Uncaught ReferenceError: uid is not defined
reportEmbed:488 Uncaught ReferenceError: powerbi is not defined

...

reportEmbed.min.js:1 ERROR ReferenceError: clusterUri is not defined
at Object.t [as createReportEmbedTelemetryHostService] (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js:29:20684)
at Object.<anonymous> (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js:28:5742)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:390)
at Object.$get (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:559:3)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:390)
at https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:563:158
at d (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:560:310)
at e (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:39)
at Object.invoke (https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:561:124)
at https://app.powerbi.com/13.0.7149.169/scripts/reportembed.externals.bundle.min.js:563:158J @ reportEmbed.min.js:1
reportEmbed.min.js:1 ERROR Error: Uncaught (in promise): ReferenceError: clusterUri is not defined

 

PowerBI web portal is using ES6 syntax in https://app.powerbi.com/13.0.7149.169/scripts/reportembed.bundle.min.js. And the browser does not support it yet. It causes the issue.

 

Do we have a configuration option to tell PowerBI server to load an javascript backwards compatible version instead?

 

Any ideas? Thanks.

0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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