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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.