Skip to content

Error: No error log file #45

@Talha76

Description

@Talha76

The file I used to generate pdf is:

import latex from "node-latex";
import * as fs from "fs";

const input = fs.createReadStream("template.tex");
const output = fs.createWriteStream("output.pdf");
const pdf = latex(input);

pdf.pipe(output);
pdf.on("error", err => console.error(err));
pdf.on("finish", () => console.log("PDF generated!"));

When I run this file, I get the following error:

Error: No error log file.
    at /home/*/node_modules/node-latex/index.js:38:36
    at FSReqCallback.oncomplete (node:fs:199:21)

Please look into this issue @saadq.

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