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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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