quasarframework / quasar-ui-qmarkdown

A Quasar UI App Extension to display inline markdown
https://quasarframework.github.io/quasar-ui-qmarkdown/
MIT License
157 stars 28 forks source link

TypeError: Cannot read properties of undefined (reading 'text') #362

Closed jasonwinman closed 2 years ago

jasonwinman commented 2 years ago

QMarkdown component not working

After installing the component through the steps described under: https://github.com/quasarframework/quasar-ui-qmarkdown/tree/dev/ui#quasar-cli-project

and using it as shown in one of the examples:

    <q-markdown>
:::
This is a **test** of markdown
:::
    </q-markdown>

I get the following error in the browser console:

vue-router.esm-bundler.js?f6c4:3295 TypeError: Cannot read properties of undefined (reading 'text')
    at Proxy.render (index.esm.js?6b99:6:1)
    at renderComponentRoot (runtime-core.esm-bundler.js?9e79:893:1)
    at ReactiveEffect.componentUpdateFn [as fn] (runtime-core.esm-bundler.js?9e79:5030:1)
    at ReactiveEffect.run (reactivity.esm-bundler.js?0a2b:167:1)
    at setupRenderEffect (runtime-core.esm-bundler.js?9e79:5156:1)
    at mountComponent (runtime-core.esm-bundler.js?9e79:4939:1)
    at processComponent (runtime-core.esm-bundler.js?9e79:4897:1)
    at patch (runtime-core.esm-bundler.js?9e79:4489:1)
    at mountChildren (runtime-core.esm-bundler.js?9e79:4685:1)
    at mountElement (runtime-core.esm-bundler.js?9e79:4594:1)

The error can be reproduced on Chrome, Brave and FF

hawkeye64 commented 2 years ago

It looks to me like you are using the version for Quasar v1. For Quasar v2, you want to be using the "next" branch.

https://qmarkdown.netlify.app/all-about-qmarkdown/installation-types