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

Some errors encoutered when running npx commands #14

Open
susudo opened this issue Apr 7, 2021 · 0 comments
Open

Some errors encoutered when running npx commands #14

susudo opened this issue Apr 7, 2021 · 0 comments

Comments

@susudo
Copy link

susudo commented Apr 7, 2021

Hi,
Being at the first step of the workshop, when launching following command: npx [email protected] bootstrap
Got the following error messages:

⨯ Unable to compile TypeScript:
lib/wordpress-lab-stack.ts:79:36 - error TS2339: Property 'ClusterParameterGroup' does not exist on type 'typeof import("/home/ec2-user/environment/ecommerce-shopfront-on-aws/wordpress-lab/node_modules/@aws-cdk/aws-rds/lib/index")'.

79     const dbClusterParam = new rds.ClusterParameterGroup(this, 'replica-param-aurora', {
                                      ~~~~~~~~~~~~~~~~~~~~~
lib/wordpress-lab-stack.ts:98:9 - error TS2322: Type '{ instanceType: InstanceType; securityGroup: SecurityGroup; vpcSubnets: { subnetType: SubnetType; }; vpc: Vpc; }' is not assignable to type 'InstanceProps'.
  Object literal may only specify known properties, but 'securityGroup' does not exist in type 'InstanceProps'. Did you mean to write 'securityGroups'?

98         securityGroup: dbsecuritygroup,
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  node_modules/@aws-cdk/aws-rds/lib/cluster.d.ts:41:14
    41     readonly instanceProps: InstanceProps;
                    ~~~~~~~~~~~~~
    The expected type comes from property 'instanceProps' which is declared here on type 'DatabaseClusterProps'
lib/wordpress-lab-stack.ts:193:7 - error TS2322: Type '{ service: string; action: string; parameters: { taskDefinition: string; cluster: string; count: number; launchType: string; networkConfiguration: { awsvpcConfiguration: { subnets: string[]; assignPublicIp: string; }; }; }; physicalResourceId: string; }' is not assignable to type 'AwsSdkCall'.
  Types of property 'physicalResourceId' are incompatible.
    Type 'string' is not assignable to type 'PhysicalResourceId | undefined'.

193       onCreate: {
          ~~~~~~~~

  node_modules/@aws-cdk/custom-resources/lib/aws-custom-resource/aws-custom-resource.d.ts:224:14
    224     readonly onCreate?: AwsSdkCall;
                     ~~~~~~~~
    The expected type comes from property 'onCreate' which is declared here on type 'AwsCustomResourceProps'

**************************************************
*** Newer version of CDK is available [1.97.0] ***
*** Upgrade recommended                        ***
**************************************************
Subprocess exited with error 1

But the AWS cloudformation stacks was created.

So is this errors normal?

Pretty same error was raised when running second commande: npx [email protected] deploy hostedZone

Please help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant