Skip to content

wp-hookdoc Not installable because of Dependency hell #42

@carstingaxion

Description

@carstingaxion

Thank you for sharing this repos code and its ideas! I really appreciate your open-source contributions.


I followed your instrations on how to do this, but was not able to finish the steps due to a vulnerable dependency.

Describe the bug

The console says:

FATAL: Unable to load template: Cannot find module 'taffydb'
Require stack:
- [...]/node_modules/wp-hookdoc/template/publish.js
- [...]/node_modules/jsdoc/cli.js
- [...]/node_modules/jsdoc/jsdoc.js

The taffydb is marked as vulnerable in GHSA-mxhp-79qh-mcx6 why it (propably) was not or can not be installed. Thanks to pure dependency hell, because this is our desired stack.

Steps to Reproduce

  1. Open folder with hookdoc dependencies installed in a terminal and run ...
$ npm run build:docs
  1. See error
$ npm run build:docs

> build:docs
> rm -rf ./docs/dev/hooks && jsdoc -c hookdoc-conf.json plugin.php inc

FATAL: Unable to load template: Cannot find module 'taffydb'
Require stack:
- [...]/node_modules/wp-hookdoc/template/publish.js
- [...]/node_modules/jsdoc/cli.js
- [...]/node_modules/jsdoc/jsdoc.js

Expected behavior

I would love to have my hooks documented.

Additional context

I wrote the little I found at: figuren-theater/ft-admin-ui#17 but I'm unsure this helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions