Skip to content

Cannot run back-end script for Finish project - Express Pet Store #3

@vietaws

Description

@vietaws

When I run the back-end script. There is an error:

[INFO] Reading configuration from config.json
[INFO] Reading configuration from ../backend/.env
[SUCCESS] ===================================================
[SUCCESS] Starting PetStore Backend
[SUCCESS] ===================================================
[INFO] Pets Table: Pets
[INFO] Region: us-east-1
[SUCCESS] ===================================================
[INFO] Starting backend on http://localhost:3000...
[INFO] 17:14:45 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.2, typescript ver. 5.8.3)
Compilation error in /Users/xxx/Downloads/examples/express-petstore/finish/backend/src/app.ts
[ERROR] 17:14:45 ⨯ Unable to compile TypeScript:
src/app.ts(21,35): error TS1109: Expression expected.

When I look at in the app.ts code:

const avpAuthorizationEngine = new AVPAuthorizationEngine({
policyStoreId: ,
callType: 'identityToken'
});

=>> Error: Cannot find name 'policyStoreId'

It seems problem about types package for AVP. Please help to check on this. Thank you.

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