Jump to content

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


dranitski
 Share

Recommended Posts

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)
  6. you should see the page
    image.png.42d756a1b80e9bd86af2bcc79cb7d5e0.png
  7. Ctrl+C - stop the webpack-dev-server
  8. rm -rf node_modules
  9. npm i [email protected]
  10. npm run dev 
  11. go to the url (https://localhost:8080 by default)
  12. The code is not working. I can not see the reason, seems like a bug?
    image.png.2294d6aeacb713d7bc4940bb83967d80.png


    Thanks in advance for any help!
Link to comment
Share on other sites

  • 1 year later...

I am facing same type of issue but removing package.lock and node_modules didn't work for me.

In my typescript project pixi.js is used. We were using it through node_modules but now we tried to use pixi.js externally but it is not working.

Steps to reproduce:

  • Replace local path of pixi.js with cdn path in project's html file
  • Added pixi.js in externals section of webpack.config.ts

Expected behaviour:

Application should run without any error

Current behaviour:

Getting following error. PIXI is undefined here

image.png.3ee41a2b928b7065437cf073bad1c475.png

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...