Ramdarior Posted March 8, 2019 Share Posted March 8, 2019 when i importing pixi in my webpack project it throws this error Uncaught TypeError: Cannot read property 'resources' of undefined code looks like this const PIXI = require("pixi.js"); or import { loader } from 'pixi.js' let resources = PIXI.loader.resources; but when i importing to html cdn version everything works fine Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted March 8, 2019 Share Posted March 8, 2019 Which version do you use? Also, pixijs can be accessed through global variable, there's no need to define it. For actual way to connect it to webpack please search through pixijs issues on github, there were many like that. Quote Link to comment Share on other sites More sharing options...
Ramdarior Posted March 8, 2019 Author Share Posted March 8, 2019 7 minutes ago, ivan.popelyshev said: Which version do you use? Also, pixijs can be accessed through global variable, there's no need to define it. For actual way to connect it to webpack please search through pixijs issues on github, there were many like that. it was 5.0.0-rc.2 ? i didn't check version ?♂️ i install 4.8.6 it works thx ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.