Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[typedoc-plugin-markdown] 3.11.9 The "path" argument must be of type string. Received undefined #280

Closed
wxsms opened this issue Jan 6, 2022 · 2 comments

Comments

@wxsms
Copy link
Contributor

wxsms commented Jan 6, 2022

node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at new NodeError (node:internal/errors:371:5)
    at validateString (node:internal/validators:119:11)
    at Object.dirname (node:path:654:5)
    at MarkdownTheme.getRelativeUrl (project\node_modules\typedoc-plugin-markdown\dist\theme.js:107:49)
    at Object.relativeURL (project\node_modules\typedoc-plugin-markdown\dist\resources\helpers\relative-url.js:9:25)
    at project\node_modules\typedoc-plugin-markdown\dist\resources\helpers\toc.js:12:126
    at Array.map (<anonymous>)
    at pushGroup (project\node_modules\typedoc-plugin-markdown\dist\resources\helpers\toc.js:12:45)
    at project\node_modules\typedoc-plugin-markdown\dist\resources\helpers\toc.js:32:25
    at Array.forEach (<anonymous>) {
  code: 'ERR_INVALID_ARG_TYPE'
}
error Command failed with exit code 1.

I'm using with Vuepress v2. The 3.11.8 works fine. but error on 3.11.9. node.js v16.11.0.

tgreyuk added a commit that referenced this issue Jan 6, 2022
@tgreyuk
Copy link
Member

tgreyuk commented Jan 6, 2022

can you please try with vuepress-plugin-typedoc@0.10.1 - i couldn't actually replicate the issue but I think it should fix it. If not will investigate further. thanks.

@wxsms
Copy link
Contributor Author

wxsms commented Jan 7, 2022

it works after upgrade vuepress-plugin-typedoc@0.10.1, thanks. closing due to problem solved.

@wxsms wxsms closed this as completed Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants