Closed amoshydra closed 7 years ago
This change https://github.com/surmon-china/vue-codemirror/pull/21 broke support for wepback with ES6 import
import
import VueCodeMirror from 'vue-codemirror'; throws error:
import VueCodeMirror from 'vue-codemirror';
Cannot assign to read only property 'exports' of object '#<Object>'
It seems to be related to this issue: https://github.com/webpack/webpack/issues/4039 as I am using webpack and ES6 import in my project.
webpack
vue-codemirror 2.1.8 does not have this problem
v3.0.3 fix it.
Upgraded to v3.0.3. It is now working now. Thanks!
This change https://github.com/surmon-china/vue-codemirror/pull/21 broke support for wepback with ES6
import
import VueCodeMirror from 'vue-codemirror';
throws error:It seems to be related to this issue: https://github.com/webpack/webpack/issues/4039 as I am using
webpack
and ES6import
in my project.vue-codemirror 2.1.8 does not have this problem