We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
localhost:6006
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"; } } } })
<div class="my-component-class">${blok.text}</div>
System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz Memory: 1.96 GB / 15.79 GB Binaries: Node: 14.21.3 - C:\Program Files\nodejs\node.EXE npm: 6.14.18 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: 117.0.5938.132 Edge: Spartan (44.19041.1266.0), Chromium (117.0.2045.47) Internet Explorer: 11.0.19041.1566
npm
No response
The text was updated successfully, but these errors were encountered:
Please provide a valid reproduction link. You can fork https://stackblitz.com/edit/github-mtfdou?file=nuxt.config.ts
Sorry, something went wrong.
Did you try to upgrade node ? I personnaly use node v18 and the plugin seems to work
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: