Jump to content

Why Property 'interactive' does not exist on type 'Container'?


CWLoog
 Share

Recommended Posts

 

//package.json
"peerDependencies": {
	***
	"@pixi/display": "^6.1.2",
},
"devDependencies": {
	***
	"@pixi/display": "^6.1.2",
}
    
//test.ts
import { Container } from "@pixi/display"
  
function(c:Container){
	c.interactive //VSCode PROBLEMS show "Property 'interactive' does not exist on type 'Container'"
}

 

b2.png

Link to comment
Share on other sites

because you didnt add "@pixi/interaction" in yout bundle.

You have to make a bundle, you know it, right? Either use "pixi.js" and import stuf from submodules like "@pixi/display", either make your own bundle with this tool: https://pixijs.io/customize/ . If you forget to add some crucial stuff like "registerPlugin" for renderer - sprites might not work

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...