Jump to content

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

Recommended Posts


"peerDependencies": {
	"@pixi/display": "^6.1.2",
"devDependencies": {
	"@pixi/display": "^6.1.2",
import { Container } from "@pixi/display"
	c.interactive //VSCode PROBLEMS show "Property 'interactive' does not exist on type 'Container'"



Link to post
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 post
Share on other sites

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.

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.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...