pixi-cull icon indicating copy to clipboard operation
pixi-cull copied to clipboard

Cannot read property 'Cull' of undefined

Open Vardan92 opened this issue 4 years ago • 3 comments

I followed the Installation example: `

`

and I'm getting an error: Cannot read property 'Cull' of undefined

Vardan92 avatar Mar 31 '21 08:03 Vardan92

See https://github.com/davidfig/pixi-cull/issues/16. I need to redo the way pixi-cull is bundled. I'll try to get to it this week. It does work if using require or import.

davidfig avatar Apr 02 '21 00:04 davidfig

See #16. I need to redo the way pixi-cull is bundled. I'll try to get to it this week. It does work if using require or import.

Appreciate it! If it's not asking for much, can you also include how you did it with bundler? Or a link to a tutorial to it? It will help with less advance programmers like myself. Thank you!

Vardan92 avatar Apr 02 '21 07:04 Vardan92

I updated the projected to v2.0.1. It is now accessible via the window.Cull variable. See the README.md for more information.

The easiest tool for bundling (I found) is parcel: https://parceljs.org/. It's almost magical. The tutorials are pretty good, and once you get it, you'll have all the packages at npmjs.com available with just an import statement. Good luck, and let me know if you run into any problems with pixi-cull.

davidfig avatar Apr 08 '21 23:04 davidfig