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 trialChristian Gomez
6,567 PointsAnyone 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
Sam Segal
Courses Plus Student 2,627 PointsI 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
Robert Richey
Courses Plus Student 16,352 PointsI'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
18,085 PointsI 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.
Robert Richey
Courses Plus Student 16,352 PointsRobert Richey
Courses Plus Student 16,352 PointsHi Christian,
I don't recall seeing this error before. Next time you get it, can you post your code to this thread?