Back to Forum
Html Canvas for begginers error
guillermo3307 posted 5 years ago

Hello, I download the game files and try to run them in visual basic, basically I only get the black start screen with the buttons but I can't run it, try a live server but it doesn't run either, it seems to be something from the howler, already that gives me the following error in chrome:

Uncaught TypeError: Failed to resolve module specifier "howler". Relative references must start with either "/", "./", or "../".

g
guillermo3307 posted 5 years ago

visual code*

chris's profile photo
chris posted 5 years ago

Hey Guillermo, you might have to download the game's associated NPM packages in order for those to resolve correctly. That's covered later on in the course, but if you want to see just the code for the first module where you can use a basic HTML file, you can view that code here:

https://github.com/chriscourses/HTML5-Canvas-and-JavaScript-Games-for-Beginners/commit/8704ec067d74241646d348a98ee7796930ce6946

And it should run accordingly. Let me know if that's what you're looking for.

Want to participate?

Create a free Chris Courses account to begin

Providing the lift to launch your development career

© 2026 Chris Courses. All rights reserved.