surmon-china / vue-codemirror

@codemirror code editor component for @vuejs
https://github.surmon.me/vue-codemirror
MIT License
3.28k stars 382 forks source link

The Code Can't Highlight, Lint Or Fold #103

Open simon9124 opened 5 years ago

simon9124 commented 5 years ago

I use vue-codemirror, toggle theme is OK, but can't highlight, lint or fold. I also copy some of your examples in my project, also can't. I have trying many methods even in issues, but no one used.

My vue-codemirror is 4.0.6 My webpack is 4.36.1 My npm is 6.9.0 My vue is 2.9.6

I surely have lead in the related dependences, and I am badly in need of your help~~

resjscn commented 4 years ago

I have the same question. Please reply

TheProudSoul commented 4 years ago

I have the same problem.

followbin commented 4 years ago

have a try: use: import VueCodemirror from 'vue-codemirror/src/index' replace: import VueCodemirror from 'vue-codemirror' Others, follow the README。

luozejian commented 4 years ago

Has this issue been solved?

followbin commented 4 years ago

Has this issue been solved?

use: import VueCodemirror from 'vue-codemirror/src/index' replace: import VueCodemirror from 'vue-codemirror' Others, follow the README。

jonathanprl commented 4 years ago

I had this issue as well. Switching to version 4.0.5 seems to fix it.