Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile beginning lines of tutorial - TS #168

Open
michaelmoreno opened this issue Nov 21, 2022 · 1 comment
Open

Cannot compile beginning lines of tutorial - TS #168

michaelmoreno opened this issue Nov 21, 2022 · 1 comment

Comments

@michaelmoreno
Copy link

michaelmoreno commented Nov 21, 2022

Following the guide on github, I have

import * as PIXI from 'pixi.js';

//Create a Pixi Application
const app = new PIXI.Application({width: 256, height: 256});

//Add the canvas that Pixi automatically created for you to the HTML document
document.body.appendChild(app.view);

When I try to compile I get

TS2345: Argument of type 'ICanvas' is not assignable to parameter of type 'Node'.
  Type 'ICanvas' is missing the following properties from type 'Node': baseURI, childNodes, firstChild, isConnected, and 42 more.

on the last line

@michaelmoreno michaelmoreno changed the title Beginning of tutorial doesn't work with TypeScript Beginning of tutorial has incorrect typing Nov 21, 2022
@michaelmoreno michaelmoreno changed the title Beginning of tutorial has incorrect typing Cannot compile beginning lines of tutorial - TS Nov 21, 2022
@313258196
Copy link

that's doesn't matter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants