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

buffer builder error #16

Open
shaniqwa opened this issue May 28, 2018 · 1 comment
Open

buffer builder error #16

shaniqwa opened this issue May 28, 2018 · 1 comment

Comments

@shaniqwa
Copy link

shaniqwa commented May 28, 2018

getting these errors:

ERROR in node_modules/escpos-xml/lib/buffer-builder.ts(9,19): error TS2554: Expected 2 arguments, but got 0.
node_modules/escpos-xml/lib/buffer-builder.ts(150,5): error TS2322: Type 'Buffer' is not assignable to type 'number[]'.
  Property 'push' is missing in type 'Buffer'.

I have fixed it by changing the return to return Array.prototype.slice.call(this.buffer.flush(), 0); in buffer-builder.ts line 150

@rgolea
Copy link

rgolea commented Dec 10, 2018

I also have this issue but slightly changed

[app-scripts] [20:23:25]  typescript: node_modules/escpos-xml/lib/buffer-builder.ts, line: 9
[app-scripts]             Expected 2 arguments, but got 0.
[app-scripts]        L8:    constructor(private defaultSettings: boolean = true) {
[app-scripts]        L9:      this.buffer = new MutableBuffer();

It seems like it doesn't like that. I'm not using that feature and I used //@ts-ignore but this should definitely be something to look at and fix.

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

2 participants