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
mash
Regular Visitor

Error when running my custom visual in Dev Tools

I am looking for help on an error message I get when I copy my code for my custom visual from Visual Studio and paste it into Dev Tools.  When I look in the browser's debugger I get a error of "Unable to get property 'sourceCode' of undefined or null reference TypeError:  Unable to get  property 'sourceCode' of undefined or null reference at y".

 

Is there any documentation I can read that would help me better understand these errors?

1 REPLY 1
mhardy
Advocate I
Advocate I

I've also had a lot of issues pasting VS code into dev tools.  The biggest issue I've found is DevTools doesn't support let and const.  These all have to be replaced with var.  Unfortunately re-scoping variables like this can have some adverse side effects.

 

Not sure this is your issue but worth a look.

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.