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

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

Open
anshulgargamway opened this issue Sep 28, 2022 · 2 comments
Labels
bug This issue is a bug. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. windows

Comments

@anshulgargamway
Copy link

anshulgargamway commented Sep 28, 2022

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

@vdahlberg
Copy link

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.

@mrgrain mrgrain added the bug This issue is a bug. label Apr 9, 2024
@mrgrain mrgrain added p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. windows labels Jun 10, 2024
@mrgrain
Copy link
Contributor

mrgrain commented Jun 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. windows
Projects
None yet
Development

No branches or pull requests

3 participants