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

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