-
Notifications
You must be signed in to change notification settings - Fork 12
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
Error: unable to determine assembly since module does not have any types #1104
Comments
One thing to note this only seems to be when generating api documentation for other languages other than typescript. |
|
I've also run into this, but with java. The command:
in my publicly available jsii project
|
This seems to be because the submodule |
I am facing the same issue. jsii-docgen fails when creating python documentation because one of my index.ts files only exports submodules, and doesn't have any types. jsii-docgen --split-by-submodule -l python -o ./docs/API_documentation/Python/API.md
Error: unable to determine assembly since module does not have any types: @library/custom-cdk-constructs.cloud_products
at PythonTranspile.getParentModule (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/transpile/transpile.js:394:19)
at PythonTranspile.moduleLike (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/transpile/python.js:244:35)
at PythonTranspile.type (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/transpile/python.js:223:33)
at PythonTranspile.callable (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/transpile/python.js:185:27)
at new Initializer (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/view/initializer.js:9:37)
at new Class (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/view/class.js:24:32)
at new Construct (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/view/construct.js:7:26)
at /usr/local/lib/node_modules/jsii-docgen/lib/docgen/view/constructs.js:10:25
at Array.map (<anonymous>)
at new Constructs (/usr/local/lib/node_modules/jsii-docgen/lib/docgen/view/constructs.js:10:14) |
I was able to generate java documentation with the following workaround type (note that you'll need to run
Unfortunately, if I annotate it |
Hi,
I have a problem with generating API documentation with jsii-docgen for the python library.
Given module layout:
The following problem happens as soon as I add a named export on the second level of the library.
Error message:
The repo can be found at https://gitlab.com/gcix/gcix.
The text was updated successfully, but these errors were encountered: