Showing results for 
Search instead for 
Did you mean: 
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?

Advocate I
Advocate I

Re: Error when running my custom visual in Dev Tools

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

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Top Solution Authors