Skip to content

Wrong version of cdk-assets causes "fail: Unrecognized asset type: '[object Object]'" #36

@kopertop

Description

@kopertop

Re-opening from the old ticket: sst/sst#3375

I'm running into an issue in a monorepo using pnpm. The wrong version of cdk-assets is resolved for SST v2, specifically it resolves to a 3.0 release candidate, which fails.

It manifests as the following error after running sst dev (or sst deploy)

⠼ Bus PUBLISH_ASSETS_IN_PROGRESS
⠼ ShopsTable PUBLISH_ASSETS_IN_PROGRESS
| ShopsTable PUBLISH_ASSETS_COMPLETE
⠼ Bus PUBLISH_ASSETS_IN_PROGRESS
[50%] fail: Unrecognized asset type: '[object Object]'
| Bus PUBLISH_ASSETS_COMPLETE
⠋ Deploying...

✖ Errors
ShopsTable UPDATE_FAILED
stack: Failed to publish one or more assets. See the error messages above for more information.
ShopTableSeed DEPENDENCY_FAILED
ShopsEventHandlers DEPENDENCY_FAILED
ShopsSubgraph DEPENDENCY_FAILED
Bus UPDATE_FAILED
stack: Failed to publish one or more assets. See the error messages above for more information.
More Details:

When I add "cdk-assets": "2.95.1" to my package json it works fine.

suggestion pin the cdk-assets to 2.95

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