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

cdk init lib #1214

Closed
moofish32 opened this issue Nov 19, 2018 · 1 comment
Closed

cdk init lib #1214

moofish32 opened this issue Nov 19, 2018 · 1 comment
Labels
bug This issue is a bug. package/tools Related to AWS CDK Tools or CLI

Comments

@moofish32
Copy link
Contributor

The lib init in v0.18.0 seems to throw errors:

cdk init lib --language typescript
Applying project template lib for typescript
Executing npm install...
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! pipeline-artifact-bucket@0.1.0 prepare: `tsc`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the pipeline-artifact-bucket@0.1.0 prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mcowgill1/.npm/_logs/2018-11-19T22_23_07_667Z-debug.log

> pipeline-artifact-bucket@0.1.0 prepare /Users/mcowgill1/code/oip-cdk/packages/@oip-cdk/pipeline-artifact-bucket
> tsc

lib/index.ts(16,33): error TS2694: Namespace '"/Users/mcowgill1/code/oip-cdk/packages/@oip-cdk/pipeline-artifact-bucket/node_modules/@aws-cdk/aws-sqs/lib/index"' has no exported member 'QueueArn'.
@rix0rrr
Copy link
Contributor

rix0rrr commented Nov 20, 2018

Yep, got it.

@rix0rrr rix0rrr added bug This issue is a bug. package/tools Related to AWS CDK Tools or CLI labels Nov 20, 2018
rix0rrr added a commit that referenced this issue Nov 20, 2018
The init template used 'QueueArn' but that no long exists.

Add integ test.

Fixes #1214.
rix0rrr added a commit that referenced this issue Nov 21, 2018
To avoid people having to clear out their template from the generated
topic and queue after they run 'cdk init app', make the 'app' template an
empty CDK project.

The original code has been moved to 'cdk init sample-app' (aliases: 'cdk
init sample', 'cdk init example').

Fixes #1124.

Also change the content of the templates. We recommend people write reusable constructs in 'lib'
directories, and they should put stacks there as well.

Change both init templates to reflect this change.

Fixes #1128.

The 'lib' init template used 'QueueArn' but that no long exists.

Fixes #1214.
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. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

2 participants