You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dynamic component does not display and a vue warning is generated suggesting that I add the alias to the bundler:
runtime-core.esm-bundler.js:38 [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
at <Anonymous content="Test content." imgFolder="" class="toastui-editor-contents" ... >
at <VRuntimeTemplate class="toastui-editor-contents" style= {max-width: '900px', margin: 'auto'} template="<div><p>Test content.</p>\n</div>" >
at <BMarkdown content="Test content." >
at <Basic>
at <DemoContainer>
at <Components/bMarkdown/desc.md>
at <VitePressContent class="vp-doc _components_b-markdown_desc" >
at <VPDoc key=3 >
at <VPContent>
at <Layout>
at <VitePressApp>
Reproduction
Create a dynamic component using vue3-runtime-template.
Add the dynamic component to a vitepress documentation page.
Attempt to view the documentation page.
Expected behavior
Expect to see the dynamic component (which works in the vite application but not in the vitepress documentation).
Describe the bug
I am documenting a vue 3 component which uses a dynamic template:
This requires use of vue/dist/vue.esm-bundler.js.
The application itself works with the following alias in the vite.config.ts file:
However, the vitepress documentation does not. I have added the same alias to the vitepress configuration file:
The dynamic component does not display and a vue warning is generated suggesting that I add the alias to the bundler:
Reproduction
Expected behavior
Expect to see the dynamic component (which works in the vite application but not in the vitepress documentation).
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: