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

Mode "text/plain" blows up with an error. #12

Closed euvl closed 7 years ago

euvl commented 7 years ago

When setting mode: "text/plain" in codemirror options, an error occurs: vue.common.js?e881:435 Error: Cannot find module './null/null.js'.

Might be due to the fact that metas.js file contains this record (with mode being "null" string):

{
  name: "Plain Text", 
  mime: "text/plain", 
  mode: "null", 
  ext: ["txt", "text", "conf", "def", "list", "log"]
}
surmon-china commented 7 years ago

Version 2.1.7 has resolved this issue. https://github.com/surmon-china/vue-codemirror/releases/tag/v2.1.7