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.

TemporaryDisplayObject is not a constructor

See original GitHub issue

Updating to from 5.2.4 to 5.3 cause this issue:

Uncaught TypeError: _pixi_display__WEBPACK_IMPORTED_MODULE_2__.TemporaryDisplayObject is not a constructor
    at new InteractionManager (interaction.es.js:946)
    at Renderer.initPlugins (core.es.js:11310)
    at new Renderer (core.es.js:11640)
    at Function.create (core.es.js:11691)
    at autoDetectRenderer (core.es.js:11926)
    at new Application (app.es.js:70)
    at new Game (game.js:29)
    at index.js:7
    at commitHookEffectListMount (react-dom.development.js:19765)
    at commitPassiveHookEffects (react-dom.development.js:19803)

Webpack:

WARNING in ./node_modules/@pixi/interaction/lib/interaction.es.js 946:39-61
"export 'TemporaryDisplayObject' was not found in '@pixi/display'
  • pixi.js version: 5.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bigtimebuddycommented, Jun 26, 2020

Yeah, I believe that pixi-sound should use peerDependencies instead of direct dependencies. Would eliminate this issue and makes more sense.

0reactions
hadimostafapourcommented, Jun 26, 2020

@bigtimebuddy Maybe, I just removed pixi-sound and errors gone. I found as you mentioned there are two versions of pixi.js that the older version installed by pixi-sound. (In addition, I do not try to remove my package-lock.json before trying to remove pixi-sound, So I’m not sure that the reason for this issue is my package-lock file or pixi-sound)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript "Not a Constructor" Exception while creating objects
The code as posted in the question cannot generate that error, because Project is not a user-defined function / valid constructor. function x(a,b,c){}...
Read more >
TemporaryDisplayObject - PixiJS
private class TemporaryDisplayObject extends PIXI.DisplayObject. Constructor ... It does not have a capture phase, unlike most of the other events.
Read more >
Model | Pixi3D - v2.1.0
Defined in node_modules/@pixi/display/index.d.ts:653. If the object has been destroyed via destroy(). If true, it should not be used.
Read more >
playground/pixi.js.d.ts at master · englercj/playground - GitHub
A fun and simple way to create and share PixiJS demos. - playground/pixi.js.d.ts at master · englercj/playground.
Read more >
PixiJS API Documentation
Natural Bounds | The bounds of an object in its own local space (not parent's space, ... private tempDisplayObjectParent: TemporaryDisplayObject; ...
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