Closed Divepit closed 4 years ago
Have you installed vuetify-markdown-editor
in your project? (For example, use npm
)
Hey @DCsunset! Yes I have installed it using npm and also tried uninstalling and reinstalling it and I can see it in the node_modules directory. For some reason the compiler doesn't go look there...
I managed to get rid of that error by importing the editor as follows:
import { Editor } from 'vuetify-markdown-editor/src/build-entry'
but then there is a new error which seems to be related to the way the stylesheet is imported into the MarkdownEditor component:
./node_modules/vuetify-markdown-editor/src/components/MarkdownEditor.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vuetify-markdown-editor/src/components/MarkdownEditor.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve '../style.css'
Oh...That was my fault. The build of v2.0.1 was messed up, and I have fixed it in v2.0.2. Check if the bug still exists.
Awesome, works like a charm now! Thanks a million!
My script tag looks as follows:
which renders:
Any suggestions what I did wrong?