quasarframework / quasar-ui-qmarkdown

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

Can't import md files after upgrade from 2.0.0-beta.2 to 2.0.0-beta.7 #369

Closed Dirk- closed 2 years ago

Dirk- commented 2 years ago

I upgraded qmarkdown from 2.0.0-beta.2 → 2.0.0-beta.7. Now all my md files produce an error like this if I run quasar dev:

 App •  ERROR  •  UI  in ./src/markdown/hilfe.md

Module parse failed: Unexpected character ' ' (1:1)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

The unexpected character is either a blank space or a hash. The md files live in my src folder and I import them like import hilfe from '../markdown/hilfe.md' (vue file is in src/pages).

I read in the commit notes from March 19th that there is a breaking change: breaking(app-ext): Support for importing md and vmd files no longer supported. Is this the problem? The docs still say I can import md files and I really need that. Do I have to move them into the assets folder?

hawkeye64 commented 2 years ago

Here is the release that re-instated *.md imports: https://github.com/quasarframework/quasar-ui-qmarkdown/releases Read the notes. You may have to do an invoke. Report back and let me know if that solved it for you.

Dirk- commented 2 years ago

Here is the release that re-instated *.md imports: https://github.com/quasarframework/quasar-ui-qmarkdown/releases Read the notes. You may have to do an invoke. Report back and let me know if that solved it for you.

This solved it indeed. Thank you very much!