Hello everyone, sorry to open this topic again, I was reading the others topics opened with the same title. The last one by example mentioned to update the "vue-slicezone" to "0.1.0", but I already had it, so my issue might be another one or at least I think so.
My json
{
"name": "my-website",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate",
"slicemachine": "start-slicemachine"
},
"dependencies": {
"@nuxtjs/axios": "^5.13.6",
"@nuxtjs/prismic": "^1.4.0",
"@prismicio/slice-simulator-vue": "^0.2.0",
"core-js": "^3.19.3",
"graphql-request": "^3.7.0",
"nuxt": "^2.15.8",
"nuxt-sm": "^0.1.0",
"vue": "^2.6.14",
"vue-server-renderer": "^2.6.14",
"vue-slicezone": "^0.1.0",
"vue-template-compiler": "^2.6.14",
"webpack": "^4.46.0"
},
"devDependencies": {
"@nuxtjs/tailwindcss": "^4.2.1",
"sass": "^1.49.0",
"sass-loader": "10",
"slice-machine-ui": "^0.2.0"
}
}
My nuxt.config.js (module section)
modules: [["@nuxtjs/prismic", {
endpoint: smConfig.apiEndpoint|| "",
apiOptions:{
routes: [
{
type:"cases",
path:"showcases/:uid"
}
]
}
}], ["nuxt-sm"]],
So I have this structure under pages folder:
pages
--showcases
----_uid.vue
index
My _id.vue component under showcases
<template>
<div>
<slice-zone type="cases" :uid="$route.params.uid" />
</div>
</template>
<script>
import SliceZone from "vue-slicezone"
export default {
components: {
SliceZone
},
}
</script>
And for now I want to try to make work the showcases section. Any advice will be really appreciate it, let me know if you need further information