Skip to content

Error: documentation tried to access micromark, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. #1381

@waqas385

Description

@waqas385

What?

I upgraded documentation version from v13.2.1 to v13.2.5 and faces an issue while creating a jsDoc i.e
Error: documentation tried to access micromark, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound

Reproducing steps

  1. Upgrade documentation to v13.2.5
  2. Ran command to create jsDoc e.g yarn documentation build myapp-api/**/*.js -f html -o docs/generated/atea-api/
  3. Throw following error

Error: documentation tried to access micromark, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: micromark (via "micromark/dist/character/markdown-line-ending")
Required by: documentation@npm:13.2.5 (via /xyzfolder/.yarn/cache/documentation-npm-13.2.5-2e2a7dce48-3f72cd5ae5.zip/node_modules/documentation/src/)

Investigation at my end

As per error message it seems that documentation has missing dependency package micromark and also unable to to find it within package.json of documentation package.

Suggestion: Add micromark as dependency within documentation package or do I need to add this dependency within my application?

version
v 13.2.5

Yarn version
2.x

Metadata

Metadata

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