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
- Upgrade documentation to v13.2.5
- Ran command to create jsDoc e.g
yarn documentation build myapp-api/**/*.js -f html -o docs/generated/atea-api/
- 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