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

TypeError: e.charCodeAt is not a function #64

Closed
abdulgafur24 opened this issue Apr 25, 2022 · 5 comments
Closed

TypeError: e.charCodeAt is not a function #64

abdulgafur24 opened this issue Apr 25, 2022 · 5 comments

Comments

@abdulgafur24
Copy link

If I use node js 16 everything is ok, but if I switch to node js 14 there is this error:

TypeError: e.charCodeAt is not a function
    at h (/project/node_modules/@pdfme/generator/dist/index.js:2:785405)
    at Object.loadFont (/project/node_modules/@pdfme/generator/dist/index.js:2:770307)
    at Object.r (/project/node_modules/@pdfme/generator/dist/index.js:2:785615)
    at Object.8887 (/project/node_modules/@pdfme/generator/dist/index.js:2:823962)
    at t (/project/node_modules/@pdfme/generator/dist/index.js:2:2196075)
    at /project/node_modules/@pdfme/generator/dist/index.js:2:3155012
    at /project/node_modules/@pdfme/generator/dist/index.js:2:3161603
    at /project/node_modules/@pdfme/generator/dist/index.js:2:3161609
    at /project/node_modules/@pdfme/generator/dist/index.js:2:84
    at Object.<anonymous> (/project/node_modules/@pdfme/generator/dist/index.js:2:223)
@hand-dot
Copy link
Collaborator

hand-dot commented Apr 27, 2022

@abdulgafur24 Thank you bug report!
I'll check this problem.

@abdulgafur24
Copy link
Author

any news?

@hand-dot
Copy link
Collaborator

@abdulgafur24
Sorry, for the late reply.

I reproduced this bug, and it comes from https://github.com/metafloor/bwip-js code that is used in https://github.com/pdfme/pdfme/blob/main/packages/generator/src/helper.ts#L42
honestly, I don't know how to fix this...

and we have another problem when using node v14.
node v14 is not an LTS version, So I'm considering to be node v14 unsupported version in pdfme in the future.

Do you need using in node v14?

@abdulgafur24
Copy link
Author

I thought aws lambda doesn't support node.js version 16. But now I see that it supports, so the question disappears.

@hand-dot
Copy link
Collaborator

Fixed by 1979649

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