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.

Module not found after upgrading to Pixi v6.4.0

See original GitHub issue

Current Behavior

After upgrading from PixiJS v6.3.2 to v6.4.0, when building/serving an Angular project, I got the following error: Error: Module not found: Error: Default condition should be last one

The problem seems to occur with WebPack and/or TypeScript, not only with Angular

Expected Behavior

There should be no error

Possible Solution

Downgrading PixiJS to v6.3.2 fixes the problem

Environment

  • PixiJS version: 6.4.0
  • Angular version: 13.3.11
  • TypeScript version: 4.6.4

TSConfig

module is set to es2020 and setting it to esnext doesn’t solve the problem

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Julien-Marcoucommented, Jun 2, 2022

Yes, everything works fine now 👍

1reaction
bigtimebuddycommented, Jun 2, 2022

Making the release now

Read more comments on GitHub >

github_iconTop Results From Across the Web

PIXIJS eventSystem is not found in V6.0.2 - Stack Overflow
js I found a workaround by installing @pixi/events separately and import the Event System from there. // In this a example, you can...
Read more >
How to generate Typescript definitions for ES5 version of the ...
Navigate pixi-spine npm package, take dist/pixi-spine.umd.js file. Unfortunately, there are no typescript definitions for vanilla build on both ...
Read more >
PixiJS
Official site for PixiJS, The HTML Creation Engine.
Read more >
@pixi-spine/loader-4.0 - npm
@pixi-spine/loader-4.0. TypeScript icon, indicating that this package has built-in type declarations ... This package does not have a README. Add ...
Read more >
Pixi's docs - PixiJS API Documentation
Error installing canvas package. The canvas library currently being used does not have a pre-built version for every environment. When the ...
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