Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements Improving the Random Number Guessing Game

Christian Gomez
Christian Gomez
6,567 Points

Anyone else getting error: "Cannot read property 'impl' of undefined"

Everyonce and a while I get an error in the console saying: "Cannot read property 'impl' of undefined" can anyone explain what this means? My code matches the video exactly.

Cheers, Chris

Hi Christian,

I don't recall seeing this error before. Next time you get it, can you post your code to this thread?

I don't see a way to post a photo, but I'm getting this conflict continuously myself in the workspace platform when trying to test code. It's real annoying, only happens occasionally, and there doesn't really seem to be a rhyme or reason to when it pops up (I can reload the browser 3-4 times and then the message will stop).

It says 'Uncaught TypeError: Cannot read property 'impl' of undefined(anonymous function) @ extensions::messaging:184' . Below is a screenshot showing the console and the conflict. http://imgur.com/g5zPY9h

Maybe this is what he's talking about? It's a bit of a nuisance and, I'm sure, can be discouraging for some.

Anyway, cheers!!

Sam

I'll speculate about the cause until someone can post a proper answer.

undefined is being returned prior to accessing the property impl. Since it's occurring intermittently, that suggests to me that privates(port) is an asynchronous operation - which allows other code to continue executing - sometimes privates will finish before accessing the property impl, sometimes it won't.

Peter Campbell
Peter Campbell
18,085 Points

I got this same message when previewing in Workspaces with this code:

var adj = prompt("Please type an adjective");
var verb = prompt("Please type a verb");
var noun = prompt("Please type a noun");
alert("All done. Ready for the message?");
var story = "There once was a " + adj + " programmer who wanted to use JavaScript to " + verb + " the " + noun + ".";
document.write(story);

I got it a number of times after the first prompt. After refreshing for the 3rd or 4th time, I got it after the alert. On the next refresh the script ran as I expected.