Is this something that will be added in the future? I used the button to add custom screenshots to my Slices but whenever I go to Prismic, in the writing room they are showing as Face emojis while in the Custom Type builder the images on the slices are not rendered correctly.
Repo name is the-watch-collectors-club.prismic and my version of the slice machine ui is ^0.0.45 (using Nextjs)
I'll be happy to debug this with you, can you tell me a bit more about your file structure of your project, where are the custom screenshots being added?
@Phil , I am also having the screenshots issue. I tried to upgrade as mentioned above and there were issues with the migration script. It broke with the '.DS_Store` folders and was hard to tell how to do it manually. I even tried creating a new slice with the new version of the prismic-cli to get an idea of the proper file structure and it didn't quite work with the slice machine and storybook. Any suggestions would be great. I'm working on a client's site and have 20 or so slices in progress.
Generated mocks and Stories are now stored in the .slicemachine folder.
TypeError: fs_1.default.rmSync is not a function
at Object.remove (/.../node_modules/slice-machine-ui/build/lib/utils/files.js:75:22)
at moveMocks (/.../node_modules/slice-machine-ui/changelog/versions/0.0.46/index.js:41:9)
at migrateSlice (/.../node_modules/slice-machine-ui/changelog/versions/0.0.46/index.js:58:3)
at /.../node_modules/slice-machine-ui/changelog/versions/0.0.46/index.js:85:13
at Array.forEach (<anonymous>)
at /.../node_modules/slice-machine-ui/changelog/versions/0.0.46/index.js:84:22
at Array.forEach (<anonymous>)
at Object.main (/.../node_modules/slice-machine-ui/changelog/versions/0.0.46/index.js:70:30)
at run (.../node_modules/slice-machine-ui/changelog/migrate.js:36:15)
at migrate (/.../node_modules/slice-machine-ui/changelog/migrate.js:65:10)
[slice-machine] Launching server
We are still looking into this migration on the alpha, but I believe a fix for the images issue has been pushed to the stable version. So, if you can try deleting your node_modules and moving back to 0.0.46 then it should work for your images and we'll keep working on the migration.
Can you tell me what sort of laptop you're using?
Also, can you check your version of node isn't 15? Try upgrading to 16 if so.