Open desdamo opened 1 year ago
localhost:6006
Please provide a valid reproduction link. You can fork https://stackblitz.com/edit/github-mtfdou?file=nuxt.config.ts
Did you try to upgrade node ? I personnaly use node v18 and the plugin seems to work
Describe the issue you're facing
Hello, i tried to use your custom schema method with RichTextSchema. But this module doesnt exist on "@storyblok/vue"
exampe of error : The requested module '/node_modules/.vite/deps/@storyblok_vue.js?v=c4827582' does not provide an export named 'RichTextSchema'
So it's impossible to use a custom schema to insert our custom component in the richTextRender
Can you update the doc or give a solution
Thanks in advance
Reproduction
localhost:6006
Steps to reproduce
example of the code import { RichTextSchema, StoryblokVue } from "@storyblok/vue";
app.use(StoryblokVue, { accessToken: "KEY", apiOptions: { // storyblok-js-client config object cache: {type: "memory"}, }, use: [apiPlugin], richText: { schema: mySchema, resolver: (component, blok) => { switch (component) { case "my-custom-component": return
<div class="my-component-class">${blok.text}</div>
; default: return "Resolver not defined"; } } } })System Info
Used Package Manager
npm
Error logs (Optional)
No response
Validations