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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Kyle_Escosia
Frequent Visitor

Error: "Uncaught SyntaxError: Unexpected token *"

Hi All,

 

I'm having some trouble in creating a custom visual.

 

I was developing a custom visual and was successful in doing so (Friday). But after accessing it again today and testing it, i got an error. 

 

I didn't even touch the code after I've got it to work.

 

 

This is the one that I've finished:
ezgif.com-video-to-gif (2).gif

 

 

This is the error I've got TODAY:
Capture.PNG

 

Any thoughts?

1 ACCEPTED SOLUTION

@Anonymous 

 

It seems like some APIs that are installed are outdated, hence causing errors.

 

I used powerbi-visual-tools v3 in there.

 

Seems like downgrading to v2.6.0 removes the error or resolves it in a way.

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Yes I am facing the same issue as well. Any suggestions???

@Anonymous 

 

It seems like some APIs that are installed are outdated, hence causing errors.

 

I used powerbi-visual-tools v3 in there.

 

Seems like downgrading to v2.6.0 removes the error or resolves it in a way.

 

Anonymous
Not applicable

@Kyle_Escosia 

I figured that with 3.x we need to include external dependencies wrapped in a seperate file and include them in the externalJS. Please check the migration guide. 

https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/migrating-to-powerbi-visuals-tools-3-0...

This solved my issue, hope it helps.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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