Open nylira opened 6 years ago
Your webpack config has an error:
config.module
.rule("md")
.test(/\.md/)
.use("vue-loader")
.loader("vue-loader")
+ .end()
+ .use("vue-markdown-loader")
.loader("vue-markdown-loader/lib/markdown-compiler")
.tap(options => {
raw: true
})
Thank you so much! That worked. Do you think it's worth including in the README?
Sure, can you help?
Build is error
Module build failed (from ./node_modules/thread-loader/dist/cjs.js):
Thread Loader (Worker 3)
Cannot read property '__vueMarkdownOptions__' of undefined
should set parallel: false
can`t use in thread-loader ?
Build is error
Module build failed (from ./node_modules/thread-loader/dist/cjs.js): Thread Loader (Worker 3) Cannot read property '__vueMarkdownOptions__' of undefined
should set
parallel: false
can`t use in thread-loader ?
Set parallel: false in vue.config.js
Here is my code in
vue.config.js
, which is used by vue cli 3.0:The PDF loader works fine, but the
vue-markdown-loader
gives me this error in Chrome:It appears that the markdown is being parsed correctly into html, and then into a vue component, but why it is not loading into the app? Thanks for the help.
This is the component I'm using the markdown in: