You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import*asPIXIfrom'pixi.js';//Create a Pixi Applicationconstapp=newPIXI.Application({width: 256,height: 256});//Add the canvas that Pixi automatically created for you to the HTML documentdocument.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
The text was updated successfully, but these errors were encountered:
michaelmoreno
changed the title
Beginning of tutorial doesn't work with TypeScript
Beginning of tutorial has incorrect typing
Nov 21, 2022
michaelmoreno
changed the title
Beginning of tutorial has incorrect typing
Cannot compile beginning lines of tutorial - TS
Nov 21, 2022
Following the guide on github, I have
When I try to compile I get
on the last line
The text was updated successfully, but these errors were encountered: