Skip to content

installing typedoc is forcing the use of 'dom' in tsconfig.json.compilerOptions.lib #529

Closed
@zam6ak

Description

@zam6ak

I have a "pure" Node lib for which I wanted to use typedoc to generate documentation...
After installing it and running it I started getting this error:

node_modules/@types/highlight.js/index.d.ts(19,40): error TS2304: Cannot find name 'Node'.

After some googling I found this issue explaining that one of typedoc dependencies (highlight.js) requires 'dom' being in the list of libs for typescript compiler...

Is there a way for me to use typedoc on a pure node library without having to resort to including 'dom' in typescript?

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