Using markdown file as a component (no loader for *.md files or component is missing template) #110
Answered
by
meteorlxy
vmihailenco
asked this question in
Q&A
-
I would like to write markdown-based Vue component Hello {{ name }}
<script>
export default {
name: 'Hello',
}
</script> And then use the component in <Hello name="world"> So far I've created import { defineClientAppEnhance } from '@vuepress/client'
import Hello from './../components/Hello.md'
export default defineClientAppEnhance(({ app }) => {
app.component('Hello', Hello)
}) But I get the error:
Any hints what to try next? PS I've also tried to rename
|
Beta Was this translation helpful? Give feedback.
Answered by
meteorlxy
Apr 11, 2021
Replies: 1 comment 2 replies
-
Well, it's not supported now. We removed the markdown-loader of v1 to decouple with webpack. You can try to implement a markdown-loader for webpack or a markdown-plugin for vite for your usage. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Mister-Hope
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, it's not supported now. We removed the markdown-loader of v1 to decouple with webpack.
You can try to implement a markdown-loader for webpack or a markdown-plugin for vite for your usage.