Skip to content

date.getUTCFullYear is not a function #2

@hermesalvesbr

Description

@hermesalvesbr

Thanks for your youtube channel!

warning ../../../package.json: No license field                                       
/home/hermes/Projetos/vue/pdf_sign/node_modules/pdf-lib/cjs/core/objects/PDFString.js:105
        var year = utils_1.padStart(String(date.getUTCFullYear()), 4, '0');
                                                ^

TypeError: date.getUTCFullYear is not a function
    at Function.PDFString.fromDate (/home/hermes/Projetos/vue/pdf_sign/node_modules/pdf-lib/cjs/core/objects/PDFString.js:105:49)
    at SignPDF._addPlaceholder (/home/hermes/Projetos/vue/pdf_sign/dist/SignPDF.js:58:28)
    at async SignPDF.signPDF (/home/hermes/Projetos/vue/pdf_sign/dist/SignPDF.js:29:18)
    at async main (/home/hermes/Projetos/vue/pdf_sign/dist/index.js:11:22)
error Command failed with exit code 1.    

I'm trying to run your code, but didn´t work. I have tried to update the dependencies too, and not working here.

Did you know why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions