Sign in to follow this  
Ramdarior

Cannot read property 'resources' of undefined

Recommended Posts

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

Share this post


Link to post
Share on other sites
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 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.