-
-
Notifications
You must be signed in to change notification settings - Fork 750
Description
Search terms
Error: Expected a symbol for node with kind
Expected Behavior
previously, typedoc worked great with our monorepo in the main branch.
we expect it to compile correctly
note: the actual typescript compilation is working fine. all the project references compile correctly.
Actual Behavior
when we merged a feature branch that uses export * from './module-path, typedoc is having a parser error on that file.
Mapping /graphiql/packages/graphiql/src/api/index.ts ==> graphiql
/graphiql/node_modules/typedoc/dist/lib/converter/context.js:55
throw new Error(`Expected a symbol for node with kind ${ts.SyntaxKind[node.kind]}`);
^
Error: Expected a symbol for node with kind StringLiteral
at Context.expectSymbolAtLocation (/home/rikki/projects/graphiql/node_modules/typedoc/dist/lib/converter/context.js:55:19)
the file in question looks like this:
export * from './providers/GraphiQLEditorsProvider';
export * from './providers/GraphiQLSessionProvider';
export * from './providers/GraphiQLSchemaProvider';
export * from './hooks';
export * from './types';this occurs with or without third party plugins, such as typedoc-monorepo-plugin which we were using successfully before this PR merge.
Steps to reproduce the bug
I cannot seem to reproduce the bug in a simplified, non-monorepo context:
https://github.com/acao/typedoc-export-bug-example
export * from 'module-path' seems to work fine with tsdoc in this case.
but in https://github.com/graphql/graphiql/ that is not the case
steps:
- clone https://github.com/graphql/graphiql/
yarnyarn buildyarn build-docs
Environment
- Typedoc version: 0.17.7
- TypeScript version: 3.9.5
- Node.js version: 13
- OS: linux, alpine