Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kopertop opened this issue Jan 20, 2025 · 0 comments · May be fixed by #37
Open

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

kopertop opened this issue Jan 20, 2025 · 0 comments · May be fixed by #37

Comments

@kopertop
Copy link
Contributor

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

@kopertop kopertop linked a pull request Jan 20, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant