Skip to content

[BUG] Node 16 support is broken as of compodoc 1.1.20 #1349

@yannbf

Description

@yannbf
Overview of the issue

From this commit, marked was updated to 5.0.0, and when checking their release, they mention that Node 16 support was removed.

Unfortunately, this means that a patch release of compodoc ends up introducing a breaking change for users:

When using Yarn classic, the node restriction will halt installation:

error marked@5.0.2: The engine "node" is incompatible with this module. Expected version ">= 18". Got "16.14.2"
error Found incompatible module.

For context, it seems like marked v5 does work with Node 16, but the engine requirement in package.json makes it break. SvelteKit had to stick to v4 too because of that reason

Operating System, Node.js, npm, compodoc version(s)

Yarn 1.22.19
Node 16
compodoc 1.1.20

If possible sourcecode of the file where it breaks

38bc0e5

Motivation for or Use Case

Given that Angular 16 supports node 16, this means that such projects using node 16 will be broken, which is not great.
Storybook for Angular also introduces compodoc for documentation, and Storybook also supports node 16.

Reproduce the error

Install compodoc@latest on a node 16 project

Suggest a Fix

I don't have context to suggest a fix other than downgrading marked back to version 4 or rollback this change in a patch release then make a breaking release of compodoc that introduces marked v5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy