Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Pixelbox

Create 2D games in JavaScript, made easier · By Cedric Stoquer

Can't find module error

A topic by a very creative username created Apr 20, 2020 Views: 107 Replies: 2
Viewing posts 1 to 2

I'm somewhat new to js, so sorry if this sounds like a basic question. I wanted to experiment with the Texture module, but when i put in var Texture = require("Texture"), it responds with an error saying that it can't find the module. How do I go about this?

(+1)

try the following:

var Texture = require("pixelbox/Texture")

It's working now. Thank you!