Skip to content

Next.JS Support #2429

@SawkaDev

Description

@SawkaDev

Hi All. I am trying to do server side rendering and am using Next.JS as a framework. Is pdfmake compatible with next.js? My usage of pdfmake works fine in a normal 'node app.js' test. However, if I take it to next.js and put all the functions / pdfmake logic inside of /pages/api it keeps crashing here:

var pdfDoc = printer.createPdfKitDocument(docDefinition);

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions