Skip to content

Malformed asset error with Sanity 2.10.0 #29

@simonandywilson

Description

@simonandywilson

After upgrading to Sanity 2.10.0, uploading an asset using this plugin causes Sanity to crash with the following error:

Error: Malformed asset _ref 'c77166f1-da6a-478f-9c9e-d747de8dbcf2'. Expected an id like "image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg".
    at parseAssetId (/static/js/app.bundle.js:91740:13)
    at urlForImage (/static/js/app.bundle.js:91870:17)
    at ImageUrlBuilder.url (/static/js/app.bundle.js:92285:14)
    at http://localhost:3333/static/js/app.bundle.js:91545:124
    at DefaultPreview.render (/static/js/app.bundle.js:125438:39)
    at finishClassComponent (/static/js/vendor.bundle.js:20318:31)
    at updateClassComponent (/static/js/vendor.bundle.js:20268:24)
    at beginWork (/static/js/vendor.bundle.js:21778:16)
    at HTMLUnknownElement.callCallback (/static/js/vendor.bundle.js:3346:14)
    at Object.invokeGuardedCallbackDev (/static/js/vendor.bundle.js:3395:16)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions