-
-
Notifications
You must be signed in to change notification settings - Fork 736
0.20 does not find custom declaration files #1445
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
Comments
I can't seem to reproduce this, what I did:
This resulted in the following output:
The output looks to be as expected, there are three exported values, so three items in the documentation |
@Gerrit0 thx for your quick reply. I opened up a branch which has the issue. |
I still can't seem to reproduce this, checking out that branch, then running
Removing those options from the options file: diff --git a/typedoc.json b/typedoc.json
index 8066213..2bd7f78 100644
--- a/typedoc.json
+++ b/typedoc.json
@@ -1,6 +1,4 @@
{
- "inputFiles": ["./src/"],
- "mode": "modules",
"readme": "none",
"out": "docs"
} Results in a working build:
|
Thank you, that is very interesting 🤔 I will try it. Btw. which platform are you using? |
I'm on Windows 10 Professional, not sure of the exact build. |
I'm on macOS Catalina 10.15.7 (19H2) Alright, I removed the Now I get these errors 😞 npm run docs
> [email protected] docs /stylelint-declaration-strict-value
> typedoc --plugin typedoc-plugin-markdown src/index.ts
Info: Loaded plugin typedoc-plugin-markdown
TypeDoc exiting with unexpected error:
TypeError: Right-hand side of 'instanceof' is not an object
at ReflectionType.type (/stylelint-declaration-strict-value/node_modules/typedoc-plugin-markdown/dist/resources/helpers/type.js:27:14)
at getType (/stylelint-declaration-strict-value/node_modules/typedoc-plugin-markdown/dist/resources/helpers/declaration-title.js:30:24)
at DeclarationReflection.declarationTitle (/stylelint-declaration-strict-value/node_modules/typedoc-plugin-markdown/dist/resources/helpers/declaration-title.js:22:124)
at DeclarationReflection.wrapper (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at Object.eval [as main] (eval at createFunctionContext (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), <anonymous>:10:225)
at main (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
at ret (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js:519:21)
at Object.invokePartial (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/runtime.js:334:12)
at Object.invokePartialWrapper [as invokePartial] (/stylelint-declaration-strict-value/node_modules/handlebars/dist/cjs/handlebars/runtime.js:84:39) |
Looks like you're running on an older version of typedoc-plugin-markdown that doesn't support 0.20. |
@Gerrit0 |
Good to hear! Closing this as resolved then. |
I just upgraded to
0.20.9
- PR here AndyOGo/stylelint-declaration-strict-value#131However I still can't build the docs.
It doesn't find my custom declaration files for 2 modules.
But my normal lint and build with typescript works.
I also tried to a the
typeRoots
options, but without luck 😞https://www.typescriptlang.org/tsconfig#typeRoots
Originally posted by @AndyOGo in #1089 (comment)
The text was updated successfully, but these errors were encountered: