manuel1
(non-linear)
August 12, 2023, 9:15pm
1
Hi, I'm tryign to use the mockup content editor on the slicemachine simulator ...but the repeateable zone displays empty Items + this message:
when trying to You can't select a document. No mock data can be rendered for this field.
Does anyone know how to fetch / use mock data on the repeatable zone or what should I do in this case?
Thanks in advance!
slicemachine v1.8
slicemachine/adapter-nuxt2 v0.3.10
1 Like
manuel1
(non-linear)
August 12, 2023, 9:55pm
2
Also ...if I switch to the @slicemachine/adapter-nuxt2/dist/simulator.cjs'
import on the slice-simulator.vue file:
<template>
<SliceSimulator v-slot="{ slices }">
<SliceZone :slices="slices" :components="components" />
</SliceSimulator>
</template>
<script>
// import { SliceSimulator } from '@prismicio/slice-simulator-vue'
import { SliceSimulator } from '@slicemachine/adapter-nuxt2/dist/simulator.cjs'
import { components } from '~/slices'
export default {
components: {
SliceSimulator,
},
data() {
return { components }
},
}
</script>
I get the "Slice Machine can't render your Slice" error:
manuel1
(non-linear)
August 14, 2023, 9:05pm
3
...anyone from support? ...should I open a github issue?
Hello @manuel1 ,
I apologize for the late reply.
I tested and was able to reproduce the error; I have reached out to the team and will let you know when I have an update.
Thanks for your patience.
Racheal.
Hello @manuel1 ,
I got some feedback from our team, and it looks like you're using a content relationship to get data from a document in the Simulator, and we don't yet support mocks for your specific use case.
Thanks,
Racheal.