我决定在将mongo引擎更新为wiredtiger后升级我的模块。突然,编译器抛出了奇怪的readOnly错误 - 不仅是vuex导入,还有组件。这是我的控制台输出:
=> Errors prevented startup:
While building for web.browser:
imports/vue/root.vue:70: [vue-component] Error while compiling in tag
<script> col:66: C:/src/app/imports/vue/root.vue:
"mapState" is read-only
imports/vue/home.vue:5: [vue-component] Error while compiling in tag
<script> col:62: C:/src/app/imports/vue/home.vue:
"mainmap" is read-only
imports/vue/login.vue:7: [vue-component] Error while compiling in tag
<script> col:68: C:/src/app/imports/vue/login.vue:
"Template" is read-only
imports/vue/logout.vue:5: [vue-component] Error while compiling in tag
<script> col:73: C:/src/app/imports/vue/logout.vue:
"users" is read-only
请注意,我正在使用“vue”:“git://github.com/mitar/vue.git#meteor”,我的package.json中的vue分叉。使用/ meteor-vue / vue-meteor github项目中的堆栈。
感谢任何帮助!
答案 0 :(得分:0)
这结果是一个流星包版本问题。将我的meteor版本文件恢复到以前的状态解决了它。