Skip to content

TypeError: HtmlFile is not a constructor #17

@yrad

Description

@yrad

When pointed at a directory e.g.

rocxl working_copy\files -r

I'm running into an issue with the error

Generating html from: working_copy\files\ro-crate-metadata.json
[...]\Scripts\node_modules\ro-crate-excel\rocxl:161
const f = new HtmlFile(preview);
^

TypeError: HtmlFile is not a constructor
at generateHTML ([...]\Scripts\node_modules\ro-crate-excel\rocxl:161:17)
at async main ([...]\Scripts\node_modules\ro-crate-excel\rocxl:90:7)

Node.js v22.7.0

I'm guessing it's a quirk in the environment I'm running but thought to appeal for some troubleshooting advice if you have it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions