2***@qq.com
2***@qq.com
  • 发布:2019-08-26 10:56
  • 更新:2020-02-16 19:36
  • 阅读:1830

【报Bug】2.2.4.20190823.alpha报错

分类:uni-app

10:50:34.065 Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
10:50:34.065 (Emitted value instead of an instance of Error)
10:50:34.078 Errors compiling template:
10:50:34.182 :value="userName" conflicts with v-model on the same element because the latter already expands to a value binding internally
10:50:34.201 19 | 昵称
10:50:34.225 20 | </view>
10:50:34.245 21 | <input :value="userName" placeholder="点击输入" v-model="details.nickName" name="input"></input>
10:50:34.247 | ^^^^^^^^^^^^^^^^^
10:50:34.273 22 | <text class='cuIcon-infofill text-blue' @tap="popInputMessage()"></text>
10:50:34.291 23 | </view>
10:50:34.292 :value="declaration" conflicts with v-model on the same element because the latter already expands to a value binding internally
10:50:34.307 33 | <view class="cu-form-group align-start margin-top">
10:50:34.308 34 | <view class="title">个性签名</view>
10:50:34.329 35 | <textarea maxlength="30" :value="declaration" placeholder="说出你想说的话" v-model="declaration"></textarea>
10:50:34.330 | ^^^^^^^^^^^^^^^^^^^^
10:50:34.355 36 | </view>
10:50:34.356 37 |
10:50:34.379 ERROR Build failed with errors.

正式版一样的代码不报这个错误 conflicts with v-model on the same element because the latter already expands to a value binding internally

2019-08-26 10:56 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com (作者)

编译出来样式乱了

DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

可以把能复现问题的代码发出来

  • 2***@qq.com (作者)

    <input :value="nickName" :v-model="detail.nickName" ></input> 只要value跟v-model同时存在就报错,另外224A版本还出现wxss问题(Some selectors are not allowed in component wxss),我现在已经退回222正式版,224解决了android invoke问题,我只使用他打出来的基座,现在回到222上再次编译不会出现那些报错,但会弹窗提醒基座222跟224版本不一致

    2019-08-26 12:51

yourapis

yourapis

我也是遇到这问题,但我的是最新的HBX。9月20日升级的最新版。

靖墨如霖

靖墨如霖 - 90后it

我今天更新了,编译uniapp-微信小程序也报错:
14:34:24.240 当前项目编译模式:自定义组件模式。编译模式差异见:https://ask.dcloud.net.cn/article/35843
14:34:36.994 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-hbuilderx/packages/webpack-uni-nvue-loader/lib/templateLoader.js):
14:34:36.998 (Emitted value instead of an instance of Error)
14:34:36.998 Errors compiling template:
14:34:37.000 :value="phone" conflicts with v-model on the same element because the latter already expands to a value binding internally
14:34:37.001 11 | <view class="cu-form-group">
14:34:37.003 12 | <view class='title'>联系电话:</view>
14:34:37.003 13 | <input placeholder="请填写联系电话" class='radius' name='phone' :focus="focus_phone" :value="phone" v-model="phone"></input>
14:34:37.007 | ^^^^^^^^^^^^^^
14:34:37.009 14 | </view>
14:34:37.009 15 | <view class="cu-form-group">
14:34:37.012 ERROR Build failed with errors.

报错位置: value="phone" conflicts with v-model on the same element because the latter already expands to a value binding internally
1***@163.com

1***@163.com - 90后IT

我前几天升级之后也的报这个错

DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

为什么同时在一个标签上用 v-model 和 :value呢

1***@qq.com

1***@qq.com

想知道怎么解决

该问题目前已经被锁定, 无法添加新回复