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

pixi_scrollbox_1.ScrollBox is not a constructor

Open notchris opened this issue 5 years ago • 4 comments

Getting: pixi_scrollbox_1.ScrollBox is not a constructor

When using as follows: ` import { ScrollBox } from 'pixi-scrollbox'; this.app = new PIXI.Application({ backgroundColor: 0x1099bb, width: this.width, height: this.height });

this.viewport = new ScrollBox({ boxWidth: this.width, boxHeight: this.height}); this.container.appendChild(this.app.view); this.app.stage.addChild(this.viewport); `

notchris avatar Jan 10 '20 17:01 notchris

What version of scrollbox are you using?

davidfig avatar Jan 10 '20 23:01 davidfig

@davidfig I pulled the latest from npm

notchris avatar Jan 11 '20 17:01 notchris

Hmm...I just tried it locally and it works. Are you using webpack for your build system? Does importing pixi.js work?

davidfig avatar Jan 11 '20 22:01 davidfig

it guess happens just because class Scrollbox hasn't "B" character. I made and issue about that. Types and sources have different letters (upperCase a lowerCase )

systemrot avatar Jan 15 '20 13:01 systemrot