wxsms / vue-md-loader

:sparkles: Markdown files to ALIVE Vue components.
https://vue-md-loader.wxsm.space
MIT License
118 stars 56 forks source link

Vue 3 Support #285

Closed jannikbuscha closed 3 years ago

jannikbuscha commented 3 years ago

Hello, is it possible to use this plugin with Vue 3?

I have tried several things, but always get errors.

e.g. when using this webpack.config.js:

image

or this vue.config.js:

image

wxsms commented 3 years ago

I have not test with vue3 yet, there might be problems. I may try it latter

jannikbuscha commented 3 years ago

I have not test with vue3 yet, there might be problems. I may try it latter

The error has something todo with this. But I get another error after fixing this issue (Component is missing template or render function)

wxsms commented 3 years ago

I just added a vue3 example here: https://github.com/wxsms/vue-md-loader/tree/master/example-vue3

and it works find. If you still facing any problems, pls provide a minimal reproduction. thanks.

image

jannikbuscha commented 3 years ago

I just added a vue3 example here: https://github.com/wxsms/vue-md-loader/tree/master/example-vue3

and it works find. If you still facing any problems, pls provide a minimal reproduction. thanks.

image

Thank you, it works! I had to update to Vue CLI @next with latest eslint.

jannikbuscha commented 3 years ago

I have one last question. Can I still use markdown-it plugins? because im getting errors:

image

I tried declaring it under configureWebpack and chainWebpack: image

wxsms commented 2 years ago

see e3f777ad7c46345f9e35ab8a729d9d20bbf9b78e