1

I am trying to use pix.js in meteor 1.3. In atmostphere it says:

Use the npm version instead, i.e. meteor npm install --save pixi.js

so I install by meteor npm install --save pixi.js instead. but when I start up my meteor app, I get this error:

Unable to resolve some modules:

"pixi.js" in
/Users/xuanxi/Desktop/bitbuckets/mindbitapp13/client/detail/game.js (web.browser) If you notice problems related to these missing modules, consider running: meteor npm install --save pixi.js

How can I resolve this?

sooon
  • 4,718
  • 8
  • 63
  • 116
  • I just check and it seems like `meteor npm install` did install `pixijs` but it is in `../../../node_modules/pixi.js` folder, which is my node_module folder. is this correct? I thought it has to be specifically in meteor app folder. – sooon Apr 07 '16 at 10:55
  • I've also got same kind off issues with a lot of little package, npm doesn't seems to download all the required file to make the package work, I dunno why. I'm not sure it's a meteor related problem. – Julien Leray Apr 07 '16 at 11:12
  • What's the `import` declaration in `game.js`? – aedm Apr 07 '16 at 11:51
  • `import PIXI from 'pixi.js';` as they suggest. – sooon Apr 07 '16 at 12:16
  • @JulienLeray [this link](http://stackoverflow.com/questions/10165978/how-do-we-or-can-we-use-node-modules-via-npm-with-meteor?rq=1) might help you out, but not in my case. – sooon Apr 07 '16 at 12:19
  • @sooon Actually not. import pixi.js as suggested won't work, I suspect bad error message formulation. Meteor will tell you that each time one js file is missing on an npm module, pixi.js reference a file from on the module, not a module itself – Julien Leray Apr 07 '16 at 13:03

0 Answers0