question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Error: marked(): input parameter is of type [object Array], string expected

See original GitHub issue

In v1.1.14, the following happens when I run npx compodoc src/ on https://github.com/googleapis/gax-nodejs repository:

Unhandled Rejection at: Promise {
  <rejected> Error: marked(): input parameter is of type [object Array], string expected
      at marked (/Users/fenster/repos/gax-nodejs/node_modules/marked/src/marked.js:27:11)
      at /Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:600:23
      at arrayEach (/Users/fenster/repos/gax-nodejs/node_modules/lodash/lodash.js:530:11)
      at Object.forEach (/Users/fenster/repos/gax-nodejs/node_modules/lodash/lodash.js:9410:14)
      at markedtags (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:599:18)
      at AngularDependencies.visitFunctionDeclaration (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:9559:32)
      at parseNode (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:8984:43)
      at /Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:9260:13
      at visitNodes (/Users/fenster/repos/gax-nodejs/node_modules/@ts-morph/common/dist/typescript.js:29004:30)
      at Object.forEachChild (/Users/fenster/repos/gax-nodejs/node_modules/@ts-morph/common/dist/typescript.js:29243:24)
} reason: Error: marked(): input parameter is of type [object Array], string expected
    at marked (/Users/fenster/repos/gax-nodejs/node_modules/marked/src/marked.js:27:11)
    at /Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:600:23
    at arrayEach (/Users/fenster/repos/gax-nodejs/node_modules/lodash/lodash.js:530:11)
    at Object.forEach (/Users/fenster/repos/gax-nodejs/node_modules/lodash/lodash.js:9410:14)
    at markedtags (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:599:18)
    at AngularDependencies.visitFunctionDeclaration (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:9559:32)
    at parseNode (/Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:8984:43)
    at /Users/fenster/repos/gax-nodejs/node_modules/@compodoc/compodoc/dist/index-cli-32a621dc.js:9260:13
    at visitNodes (/Users/fenster/repos/gax-nodejs/node_modules/@ts-morph/common/dist/typescript.js:29004:30)
    at Object.forEachChild (/Users/fenster/repos/gax-nodejs/node_modules/@ts-morph/common/dist/typescript.js:29243:24)
[14:43:21] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)
Operating System, Node.js, npm, compodoc version(s)

MacOS and Linux, Node.js v15.11.0 (but fails on other versions in CI too), npm v7.6.0. compodoc v1.1.13: OK compodoc v1.1.14: fails

Angular configuration, a package.json file in the root folder

No Angular. package.json: https://github.com/googleapis/gax-nodejs/blob/e5b2e63b7d3e028c17c1229e6eb547a70e9f4a62/package.json

Compodoc installed globally or locally ?

Locally as a dev dependency

If possible sourcecode of the file where it breaks
If possible your terminal logs before the error

https://gist.github.com/alexander-fenster/3e0aaf1220d2774c4c649260c475a41d

Motivation for or Use Case
Reproduce the error
$ git clone https://github.com/googleapis/gax-nodejs.git
$ cd gax-nodejs
$ git checkout e5b2e63b7d3e028c17c1229e6eb547a70e9f4a62
$ npm install
$ npx compodoc src/
Related issues
Suggest a Fix

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

[BUG] Error: marked(): input parameter is of type [object Array ...
Overview of the issue I'm using Storybook which bases its config on Compodoc. While building the project its crashes with this error: ...
Read more >
marked(): input parameter is of type [object Function], string ...
marked (): input parameter is of type [object Function], string expected. Seems that string is expected, where you pass an object?
Read more >
CompoDocs failed with Input Parmeter is a type of [object ...
Unhandled Rejection at: Promise { Error: marked(): input parameter is of type [object Array], string expected at marked ...
Read more >
Microsoft Flow Error - Invalid type. Expected String but got Null.
The fix is quite easy. You just need to manually modify a type of property in the schema. By default you get type...
Read more >
Bug descriptions — spotbugs 4.7.3 documentation
This call to a generic collection method passes an argument while compile type Object where a specific type from the generic type parameters...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found