Hello i am new to this and am trying to work with pixi js but it wont start. i have watched tutorials and followed them but i keep gettign this error :
<code>Uncaught TypeError: Cannot read properties of undefined (reading 'canvas')
at get view (pixi.min.js:436:24397)
at app.js:12:31
</code>
<code>Uncaught TypeError: Cannot read properties of undefined (reading 'canvas')
at get view (pixi.min.js:436:24397)
at app.js:12:31
</code>
Uncaught TypeError: Cannot read properties of undefined (reading 'canvas')
at get view (pixi.min.js:436:24397)
at app.js:12:31
this is my html :
<code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto-moving Music Keys</title>
</head>
<body>
<script src="./node_modules/pixi.js/dist/pixi.min.js"></script>
<script src="./app.js"></script>
</body>
</html>
</code>
<code><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto-moving Music Keys</title>
</head>
<body>
<script src="./node_modules/pixi.js/dist/pixi.min.js"></script>
<script src="./app.js"></script>
</body>
</html>
</code>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Auto-moving Music Keys</title>
</head>
<body>
<script src="./node_modules/pixi.js/dist/pixi.min.js"></script>
<script src="./app.js"></script>
</body>
</html>
and my appjs :
<code>var PIXI= PIXI || {};
const Application = PIXI.Application;
const app = new Application();
document.body.appendChild(app.view);
</code>
<code>var PIXI= PIXI || {};
const Application = PIXI.Application;
const app = new Application();
document.body.appendChild(app.view);
</code>
var PIXI= PIXI || {};
const Application = PIXI.Application;
const app = new Application();
document.body.appendChild(app.view);
New contributor
fis hoxha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.