Skip to content

Cannot find module './trigger/cognito-user-pool-trigger/' or its corresponding type declarations. #197

@anilsamuel

Description

@anilsamuel

Steps:

  1. Executed following commands

git clone http://github.com/aws-samples/amazon-cognito-example-for-external-idp.git
cd amazon-cognito-example-for-external-idp/
cp env.sh.template env.sh
./install.sh
./deploy.sh

  1. Following errors observed

tsc src/config/autoGenConfig.ts

node_modules/@types/aws-lambda/index.d.ts:26:15 - error TS2307: Cannot find module './trigger/cognito-user-pool-trigger/' or its corresponding type declarations.

26 export * from "./trigger/cognito-user-pool-trigger/";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:37:15 - error TS2307: Cannot find module './trigger/lambda-function-url' or its corresponding type declarations.

37 export * from "./trigger/lambda-function-url";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:38:15 - error TS2307: Cannot find module './trigger/lex' or its corresponding type declarations.

38 export * from "./trigger/lex";
~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:39:15 - error TS2307: Cannot find module './trigger/lex-v2' or its corresponding type declarations.

39 export * from "./trigger/lex-v2";
~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:42:15 - error TS2307: Cannot find module './trigger/msk' or its corresponding type declarations.

42 export * from "./trigger/msk";
~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:43:15 - error TS2307: Cannot find module './trigger/s3' or its corresponding type declarations.

43 export * from "./trigger/s3";
~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:44:15 - error TS2307: Cannot find module './trigger/s3-batch' or its corresponding type declarations.

44 export * from "./trigger/s3-batch";
~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:45:15 - error TS2307: Cannot find module './trigger/s3-event-notification' or its corresponding type declarations.

45 export * from "./trigger/s3-event-notification";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:46:15 - error TS2307: Cannot find module './trigger/secretsmanager' or its corresponding type declarations.

46 export * from "./trigger/secretsmanager";
~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:47:15 - error TS2307: Cannot find module './trigger/self-managed-kafka' or its corresponding type declarations.

47 export * from "./trigger/self-managed-kafka";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:48:15 - error TS2307: Cannot find module './trigger/ses' or its corresponding type declarations.

48 export * from "./trigger/ses";
~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:49:15 - error TS2307: Cannot find module './trigger/sns' or its corresponding type declarations.

49 export * from "./trigger/sns";
~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:50:15 - error TS2307: Cannot find module './trigger/sqs' or its corresponding type declarations.

50 export * from "./trigger/sqs";
~~~~~~~~~~~~~~~

node_modules/@types/aws-lambda/index.d.ts:51:15 - error TS2307: Cannot find module './trigger/transfer-family-authorizer' or its corresponding type declarations.

51 export * from "./trigger/transfer-family-authorizer";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 14 errors in the same file, starting at: node_modules/@types/aws-lambda/index.d.ts:26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions