0

When I run tsc && npm run browserify && npm run minify I get this error:

lib/helper.ts:71:38 - error TS4078: Parameter 'inputData' of exported function has or is using private name 'Buffer'.

71   inputData: NodeJS.ReadableStream | Buffer | string

From what I can see, I should be exporting Buffer in some way but I'm not sure what that means or how to do it.

1 Answer 1

1

You need nodejs typings. Simply run npm install @types/node.

EDIT: If that's not the problem, then you should go to your lib/helper.ts and export the private Buffer, as inputData is exported and using Buffer, but Buffer is not exported.

Info extracted from here.

Sign up to request clarification or add additional context in comments.

1 Comment

That was it. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.