pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
800 stars 128 forks source link

npm install errors upgrading to Pixi 7 #187

Closed anisabboud closed 1 year ago

anisabboud commented 2 years ago

@pixi/sound & @pixi/particle-emitter errors:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @pixi/sound@5.0.0
npm ERR! Found: @pixi/core@6.5.8
npm ERR! node_modules/@pixi/core
npm ERR!   peer @pixi/core@"^6.0.4" from @pixi/particle-emitter@5.0.7       
npm ERR!   node_modules/@pixi/particle-emitter
npm ERR!     @pixi/particle-emitter@"^5.0.7" from the root project
npm ERR!   peer @pixi/core@"6.5.8" from @pixi/sprite@6.5.8
npm ERR!   node_modules/@pixi/sprite
npm ERR!     peer @pixi/sprite@"^6.0.4" from @pixi/particle-emitter@5.0.7   
npm ERR!     node_modules/@pixi/particle-emitter
npm ERR!       @pixi/particle-emitter@"^5.0.7" from the root project        
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @pixi/core@"^7.0.0-X" from @pixi/sound@5.0.0
npm ERR! node_modules/@pixi/sound
npm ERR!   @pixi/sound@"^5.0.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @pixi/core@7.0.2
npm ERR! node_modules/@pixi/core
npm ERR!   peer @pixi/core@"^7.0.0-X" from @pixi/sound@5.0.0
npm ERR!   node_modules/@pixi/sound
npm ERR!     @pixi/sound@"^5.0.0" from the root project

package.json:

    "pixi.js": "^7.0.2",
    "@pixi/assets": "^7.0.2",
    "@pixi/particle-emitter": "^5.0.7",
    "@pixi/sound": "^5.0.0",
    "pixi-ease": "^3.0.7",
bigtimebuddy commented 2 years ago

This is because @pixi/particle-emitter dependencies doesn't yet support v7. I don't think there's much functionally that particle-emitter wouldn't support, so this should probably be an easy adjustment.

Bonkles commented 1 year ago

As a complete hacky experiment, I forked and rebuilt the repo with pixi v7.0.4 and was able to successfully reproduce the 'snowflakes' example without any issues.

andrewstart commented 1 year ago

Version 5.0.8 allows PixiJS 7.x.

gubeils commented 4 months ago

Version 5.0.8 allows PixiJS 7.x. @andrewstart

  • hello, I am currently using pixijs version 7.3.2. I directly copied the src of this project using the 5.0.8 particle-emitter to my project. Now I am encountering the following error.

image