-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Describe the bug
After a successful migration, I added the sanity-plugin-media
to view the media that had been migrated. When viewing from the Media tab I can see assets and I can click an asset to view the details. In the "References" tab in the modal, I can see the entry that references the selected asset. When I click into the referenced entry, I am brought to that entry however when looking at the field that contains the asset I see:
If I follow the prompt to reset, I see:
Which finally choosing "Select" -> "Media" (to access the Media library) I do not see any assets.
To Reproduce
Steps to reproduce the behavior:
- Follow the guide to migrate a Contentful project to Sanity
- Once running locally, add the
sanity-plugin-media
to your list of plugins insanity.config.ts
(or js) - View imported assets from the Media tab
- Click into an asset
- Click to find the referenced entry
- View the above "Invalid file value" error
- Reset the field, attempt to find the asset in the Media library via "Select" -> "Media"
- view an empty Media library
Expected behavior
When migrating, any referenced images should be properly linked to the entry that contains the image.
Screenshots
See above
Which versions of Sanity are you using?
@sanity/cli (global) 3.46.1 (up to date)
@sanity/eslint-config-studio 4.0.0 (up to date)
@sanity/vision 3.46.1 (up to date)
sanity 3.46.1 (up to date)
What operating system are you using?
Mac OS: Sonoma 14.5 (23F79)
Which versions of Node.js / npm are you running?
10.2.0
v21.1.0