Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pixi_scrollbox_1.ScrollBox is not a constructor #14

Open
notchris opened this issue Jan 10, 2020 · 4 comments
Open

pixi_scrollbox_1.ScrollBox is not a constructor #14

notchris opened this issue Jan 10, 2020 · 4 comments

Comments

@notchris
Copy link

notchris commented Jan 10, 2020

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);
`

@davidfig
Copy link
Owner

What version of scrollbox are you using?

@notchris
Copy link
Author

@davidfig I pulled the latest from npm

@davidfig
Copy link
Owner

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

@systemrot
Copy link

systemrot commented Jan 15, 2020

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants