Skip to content

Error building with OpenId4VC modules #280

@GHkrishna

Description

@GHkrishna
There was a problem resolving type of 'OpenId4VcSiopCreateAuthorizationRequestOptions'.
There was a problem resolving type of 'OpenId4VcVerificationSessionsCreateRequestOptions'.
Generate routes error.
 GenerateMetadataError: JSON could not parse default str: "to `direct_post`.

With response_mode `direct_post` the response will be posted directly to the `response_uri` provided in the request.
With response_mode `direct_post.jwt` the response will be `signed` `encrypted` or `signed and encrypted` and then posted to the `response_uri` provided in the request.", preformatted: "to "direct_post".

With response_mode "direct_post" the response will be posted directly to the "response_uri" provided in the request.
With response_mode "direct_post.jwt" the response will be "signed" "encrypted" or "signed and encrypted" and then posted to the "response_uri" provided in the request."
message: "Unexpected token 'o', "to "direct_"... is not valid JSON"

Error while building credo-ts-ext with pnpm build for OID4VC.
Works fine if I comment the OID4VC packages. Not sure if it has something to do with any recent changes that we need.

Changes

Package.json

    "@credo-ts/anoncreds": "^0.5.13",
    "@credo-ts/askar": "^0.5.13",
    "@credo-ts/cheqd": "^0.5.13",
    "@credo-ts/core": "^0.5.13",
    "@credo-ts/indy-vdr": "^0.5.13",
    "@credo-ts/node": "^0.5.13",
    "@credo-ts/openid4vc": "^0.5.13",
    "@credo-ts/tenants": "^0.5.13",

tsconfig.build.json

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "ES2020",

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