Closed bskimball closed 3 years ago
Upon further review: the vueLoader object is as follows
{
test: /\.vue$/,
loader: 'vue-loader',
options: {
productionMode: true,
transformAssetUrls: {
video: 'src',
source: 'src',
object: 'src',
embed: 'src'
}
}
}
the module is looking for loaders which does not exist under options. It looks like we need to check if loaders already exist, if they don't then we need to create the loaders object. I can create a PR
I created a PR for this a couple weeks ago. Can we see that it gets reviewed and merged?
I pushed to my own npm registry until they create a new release. Hopefully this can help you a little https://www.npmjs.com/package/@digibytes/markdownit
This is an issue for me with Nuxt 2.0 - using @waleeddogar version seems to work. Thanks!
Fixed with nuxt-community/community-modules#208 and https://github.com/nuxt-community/modules/releases/tag/%40nuxtjs%2Fmarkdownit%401.2.2
Thanks to @bskimball ☺️
This bug-report has been fixed by @bskimball.
This bug-report has been fixed by @bskimball.
Thank you, this seems to work well now using Nuxt 2.0.0 and "@nuxtjs/markdownit": "^1.2.2",
Version
2
Steps to reproduce
When running @nuxtjs/markdownit with nuxt-edge, the build files with cannot read 'md' of undefined.
It looks to be when trying to add markdownitLoader to vueLoader in line 22 of index.js. on this command vueLoader.query.loaders['md'] = markDownItLoader. vueLoader.query.loaders is returning as undefined.
What is expected ?
To be able to use markdown files
What is actually happening?
build failure