No longer working with latest PIXI.js (6.1.2)
See original GitHub issueError when building, angular 12, pixi.js 6.1.2, pixi-viewport 4.32.0:
Error: node_modules/pixi-viewport/index.d.ts:4:15 - error TS2459: Module '"@pixi/interaction"' declares 'IHitArea' locally, but it is not exported.
4 import type { IHitArea } from '@pixi/interaction';
~~~~~~~~
node_modules/@pixi/interaction/index.d.ts:18:19
18 declare interface IHitArea {
~~~~~~~~
'IHitArea' is declared here.
It looks like @pixi/interaction
doesn’t export IHitArea
type anymore.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:9 (4 by maintainers)
Top Results From Across the Web
PixiJS
Official site for PixiJS, The HTML Creation Engine. ... Developers old and new will find themselves right at home with its simple yet...
Read more >pixi.js-legacy - npm
The aim of this project is to provide a fast lightweight 2D library that works across all devices. The PixiJS renderer allows everyone...
Read more >PIXIJS eventSystem is not found in V6.0.2 - Stack Overflow
But that doesn't work, so I went into the documentation and found this snipped of code in their example of a click event....
Read more >Why Property 'interactive' does not exist on type 'Container'?
September 9, 2021 in Pixi.js ... If you forget to add some crucial stuff like "registerPlugin" for renderer - sprites might not work....
Read more >pixi.js-legacy - UNPKG
12, This package is the same as **pixi.js**, but provides fallback support for browsers that do not support WebGL or more modern JavaScript...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just saw this from earlier today: https://github.com/pixijs/pixijs/pull/7916
It looks like PIXI is going to be re-exporting
IHitArea
from the interaction package in the next release (and the removal of the export was unintentional). Might be possible for users of pixi-viewport to just update to that pixi when it comes out to fix this.I’ve made a PR (#347) to fix this issue while we wait for #336 to be ready.