Open loicGR opened 5 years ago
Sorry, the error message is not a reference error but this one :
Unknown custom element: <vue-markdown> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Can someone help me ?
Try this:
@Component({
components: { 'vue-markdown': VueMarkdown }
})
@loyaruarutoitsu : It does not work better. As you can see in the image below, my IDE displays 'view-markdown'
in red when importing, which means it can not find this component in the node_modules directory. There is yet! So I don't understand why it does not work.
it's because there's no typings for vue-markdown
. npm install --save @types/vue-markdown
and add "@types/vue-markdown"
under types
in tsconfig.js
@types/vue-markdown
Thanks, that works!
I installed with
npm i --save vue-markdown
In my code Vue Typescript I have:
When i run I have the message in the console
ReferenceError: VueMarkdown is not defined