Skip to content

Cannot find names ['LambdaHTTPEvent', 'DynamoDBItem'] during deployment #6

@mcat-ee

Description

@mcat-ee

I'm getting the following issues during deployment:

$ serverless deploy
Serverless: Configure DynamoDB Auto Scaling …
Serverless:  - Building configuration for resource "table/DynamoDBTable"
Serverless: Added DynamoDB Auto Scaling to CloudFormation!
Serverless: Compiling with Typescript...
Serverless: Using local tsconfig.json
src/api/ranking.ts (5,24): Cannot find name 'LambdaHttpEvent'.
src/api/ranking.ts (27,12): Cannot find name 'DynamoDBItem'.
src/api/ranking.ts (28,11): Cannot find name 'DynamoDBItem'.
src/api/ranking.ts (28,28): Cannot find name 'DynamoDBItem'.
src/api/ranking.ts (31,12): Cannot find name 'DynamoDBItem'.
src/api/ranking.ts (32,14): Cannot find name 'DynamoDBItem'.
src/api/ranking.ts (39,12): Cannot find name 'RankingItem'.
src/api/series.ts (6,24): Cannot find name 'LambdaHttpEvent'.
src/api/series.ts (33,12): Cannot find name 'DynamoDBItem'.
src/api/series.ts (34,11): Cannot find name 'DynamoDBItem'.
src/api/series.ts (34,28): Cannot find name 'DynamoDBItem'.
src/api/series.ts (37,12): Cannot find name 'DynamoDBItem'.
src/api/series.ts (38,14): Cannot find name 'DynamoDBItem'.
src/api/series.ts (45,12): Cannot find name 'SeriesItem'.
src/process.ts (31,23): Cannot find name 'EventData'.
src/process.ts (56,28): Cannot find name 'KinesisEvent'.
src/process.ts (61,12): Cannot find name 'KinesisItem'.
Serverless: Packaging service...
Serverless: Excluding development dependencies...

I had some earlier issues with Brew and jq (Brew was an older version and jq wasn't installed) - but they appear to be sorted now.

I changed the service name and tried to re-deploy but I received the same errors :(

What should I try next?

edit: I'm running OSX 13.3

I've ran the commands included in the README.md file and npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions