pixi.js 5.1.5 - "Cannot read property 'start' of undefined"

Created on 15 Oct 2019  路  5Comments  路  Source: pixijs/pixi.js

My working project stopped working after updating to pixi.[email protected]

Steps to reproduce:

  1. git clone https://[email protected]/dmitrydranitski/pixijs-5.1.1-5.1.5-update-bug.git
  2. cd into dir
  3. npm i
  4. npm run dev
  5. go to the url (https://localhost:8080 by default)
    you should see the page
    image
  6. Ctrl+C - stop the webpack-dev-server
  7. rm -rf node_modules
  8. npm i pixi.[email protected]
  9. npm run dev
  10. go to the url (https://localhost:8080 by default)
  11. The code is not working. I can not see the reason, seems like a bug?
    image

Thanks in advance for any help!

  • pixi.js version: 5.1.1 (working) - 5.1.5 (not working)
  • Browser & Version: Version 76.0.3809.100 (Official Build) (64-bit)
  • OS & Version: Arch Linux
Stale

Most helpful comment

"Remove package.lock and node_modules" helped. Thanks!

All 5 comments

Known bug. Two versions of pixi exist at the same time, renderers are registered in only one of them.

"Remove package.lock and node_modules" helps.

We have a number of threads in forums & here, all closed.

Personally, I dont know what to do about it, except "throw webpack away, use vanilla js!"

"Remove package.lock and node_modules" helped. Thanks!

I run yarn remove pixi.js-legacy and fixed it. I think the pixi.js-legacy module messes up with the regular pixi. Or maybe the versions of pixi and pixi.js-legacy don't match. Didn't had time to investigate.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

It happened again.

I had the following dependencies in my package.json:
"pixi-filters": "3.1.1", "pixi.js": "5.2.2"

  • New 5.2.3 pixi.js version has been released.
  • I still have "pixi.js": "5.2.2" as a dependency.
  • After npm install some pixi.js dependencies in package-lock.json are pointed to 5.2.3 some are still to 5.2.2.

Solution in my case:

  • Update my pixi.js dependency to 5.2.3
  • Clear node_modules and package-lock.json
  • npm install
  • Now all pixi.js dependencies are pointed to 5.2.3 versions, so there are no versions conflict now and issue is solved.
Was this page helpful?
0 / 5 - 0 ratings