jsii-docgen icon indicating copy to clipboard operation
jsii-docgen copied to clipboard

Facing Error: Assembly "@custom-cdk-constructs/base-pipeline" not found

Open anshulgargamway opened this issue 2 years ago • 2 comments

Currently we are exploring a way to generate documentation for our custom CDK construct.

We have created custom CDK contruct using following command npx cdk init lib --language=typescript

and we tried to execute npx jsii-docgen

And we faced following issue any help over here will be great. Error: Assembly "@custom-cdk-constructs/base-pipeline" not found at TypeSystem.findAssembly (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-reflect\lib\type-system.js:147:19) at C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\docgen\view\documentation.js:235:23 at async withTempDir (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\docgen\view\documentation.js:271:16) at async Documentation.createAssembly (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\docgen\view\documentation.js:212:25) at async Documentation.toJson (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\docgen\view\documentation.js:125:28) at async Documentation.toMarkdown (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\docgen\view\documentation.js:170:23) at async main (C:\Users\masked\AppData\Local\npm-cache\_npx\6d618b10e1acde92\node_modules\jsii-docgen\lib\cli.js:51:21)

Do we need to do anything additional on our newly created construct apart from executing npx jsii-docgen

anshulgargamway avatar Sep 28 '22 13:09 anshulgargamway

Did you solve this?

Facing the same issue, but it works with a new project generated using (projen)[https://github.com/projen/projen] and awscdk-construct project type.

But we would prefer to not use projen.

vdahlberg avatar Dec 23 '22 11:12 vdahlberg

Are you able to confirm if this happens only on windows? I suspect it's due to failing to resolve modules correctly on windows.

mrgrain avatar Jun 10 '24 09:06 mrgrain