question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No longer working with latest PIXI.js (6.1.2)

See original GitHub issue

Error 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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
mcdenhoedcommented, Oct 25, 2021

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.

2reactions
mcdenhoedcommented, Oct 15, 2021

I’ve made a PR (#347) to fix this issue while we wait for #336 to be ready.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found