Angular issue when using pixi.js@6.0.* #7405
Replies: 1 comment
-
Hi @donmahallem, thanks for pointing this out. In general, integration with other DOM frameworks like React or Angular isn't a priority for this project. There are lots of resources like Stack Overflow and other places for tips on how to get this to work. Also, for support-related questions, if you wouldn't mind, please use the Discussion section not Issues. That being said, here is the important bit: import { Application } from "@pixi/app";
import { Sprite } from "@pixi/sprite"; The easiest solution is to do this: import { Application, Sprite } from "pixi.js"; Here's the reason why this works. If you're using the sub-packages ( import { Renderer } from '@pixi/core';
import { BatchRenderer } from '@pixi/core';
Renderer.registerPlugin('batch', BatchRenderer); The |
Beta Was this translation helpful? Give feedback.
-
I do know that this might not be an pixi exclusive issue but I can't blame angular currently either directly for this as during pixi setup something gets messed up.
Expected Behavior
It should render the provided sprite inside the angular component.
Current Behavior
Doesn't initialize the renderer correctly
Possible Solution
Steps to Reproduce
Setup a simple pixi application with a sprite and attach it to the component and try to call render.
Neither Application nor autoDetectRenderer do work.
Environment
pixi.js
version: 6.0.x_Beta Was this translation helpful? Give feedback.
All reactions