Pixi.js: Pixi installs always in latest version ignoring version in npm install

Created on 7 Nov 2019  ยท  4Comments  ยท  Source: pixijs/pixi.js

Expected Behavior

Pixi is installed in version specified

Current Behavior

Pixi installs current latest version with no respect to package.json / npm install with @

Possible Solution

Remove ^ from version strings in https://github.com/pixijs/pixi.js/blob/dev/bundles/pixi.js/package.json

Steps to Reproduce

npm init
npm install [email protected] --save --save-exact

5.2.0 will be installed
image

Environment

  • pixi.js version: 5.2.0 (from my quick look all Pixi v5 versions do apply)
  • Browser & Version: does not apply
  • OS & Version: Ubuntu 19.10 / Windows 10
  • Running Example: https://github.com/krtr/not-respectful-pixi
    (error initially discovered in webpack project)

p.s.
In my project this blocks development, because updating to 5.2.0 causes application to have new issues not present in previous versions.

Most helpful comment

You need to pin all the dependencies (anything package name โ€œ@pixi/...โ€) because the main package is a pretty empty shell to simply include dependencies. The other alternative is to use the dist build in 5.1.5, to get the locked version with all dependencies bundled. Both are obviously annoying to do, so when I do the next release Iโ€™ll make sure to pin exact versions when I bump.

All 4 comments

You need to pin all the dependencies (anything package name โ€œ@pixi/...โ€) because the main package is a pretty empty shell to simply include dependencies. The other alternative is to use the dist build in 5.1.5, to get the locked version with all dependencies bundled. Both are obviously annoying to do, so when I do the next release Iโ€™ll make sure to pin exact versions when I bump.

@bigtimebuddy thanks for quick reply

Iโ€™ll make sure to pin exact versions when I bump

:+1:

You need to pin all the dependencies

I have already done that with yarn resolutions:
for anyone experiencing same issue:

"resolutions": {
    "@pixi/accessibility": "5.1.5",
    "@pixi/app": "5.1.5",
    "@pixi/constants": "5.1.0",
    "@pixi/core": "5.1.5",
    "@pixi/display": "5.1.3",
    "@pixi/extract": "5.1.5",
    "@pixi/filter-alpha": "5.1.5",
    "@pixi/filter-blur": "5.1.5",
    "@pixi/filter-color-matrix": "5.1.5",
    "@pixi/filter-displacement": "5.1.5",
    "@pixi/filter-fxaa": "5.1.5",
    "@pixi/filter-noise": "5.1.5",
    "@pixi/graphics": "5.1.5",
    "@pixi/interaction": "5.1.5",
    "@pixi/loaders": "5.1.5",
    "@pixi/math": "5.1.0",
    "@pixi/mesh": "5.1.5",
    "@pixi/mesh-extras": "5.1.5",
    "@pixi/mixin-cache-as-bitmap": "5.1.5",
    "@pixi/mixin-get-child-by-name": "5.1.3",
    "@pixi/mixin-get-global-position": "5.1.3",
    "@pixi/particles": "5.1.5",
    "@pixi/polyfill": "5.1.0",
    "@pixi/prepare": "5.1.5",
    "@pixi/runner": "5.1.1",
    "@pixi/settings": "5.1.3",
    "@pixi/sprite": "5.1.5",
    "@pixi/sprite-animated": "5.1.5",
    "@pixi/sprite-tiling": "5.1.5",
    "@pixi/spritesheet": "5.1.5",
    "@pixi/text": "5.1.5",
    "@pixi/text-bitmap": "5.1.5",
    "@pixi/ticker": "5.1.3",
    "@pixi/utils": "5.1.3"
  }

@bigtimebuddy This doesn't seem to be fixed when using yarn to install 5.1.6

I've just done yarn install [email protected], and in the @pixi/ directory within node modules, it still points to 5.2.1

@adam-mvk Below seemed to work for me. Please provide some steps to reproduce 5.2.1.

yarn add [email protected]
yarn add v1.17.3
info No lockfile found.
[1/4] ๐Ÿ”  Resolving packages...
[2/4] ๐Ÿšš  Fetching packages...
[3/4] ๐Ÿ”—  Linking dependencies...
[4/4] ๐Ÿ”จ  Building fresh packages...
success Saved lockfile.
success Saved 33 new dependencies.
info Direct dependencies
โ””โ”€ [email protected]
info All dependencies
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ @pixi/[email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ”œโ”€ [email protected]
โ””โ”€ [email protected]
Was this page helpful?
0 / 5 - 0 ratings

Related issues

distinctdan picture distinctdan  ยท  3Comments

madroneropaulo picture madroneropaulo  ยท  3Comments

samueller picture samueller  ยท  3Comments

sntiagomoreno picture sntiagomoreno  ยท  3Comments

lunabunn picture lunabunn  ยท  3Comments