Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


I cant view the game on my local machine. any thoughts?

Hey guys,

I wanted to do some work offline yesterday and noticed that when I load index.html nothing was loading. it showed this error below... any thoughts?

Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded.

Hi fazrul kamisan ,

Can you post a link to the game you are having issues with? I can get back to you with some info. Until then some common issues would be:

  • Cross Origin (as per your error): The game is trying to pull information from another Domain.
  • Server: Many courses require a web server for pages have access certain web technologies.

1 Answer

Hi Ross,

I downloaded the each files that I worked on the interactive workspaces. I can share you the file here: https://www.dropbox.com/s/m5i13mxg8hssizv/coin-catcher.zip?dl=0

it seems to be working if we work directly on the interactive workspace, but since I finished the course I wanted to add additional feature as suggested by the course teacher. unfortunately I cant preview html locally because of the error shown above

Look forward to your answer