Open chrisvfritz opened 6 years ago
It seems that's fixable. someone already posted a fixed fork for babel-plugin-transform-vue-jsx
in the issue you linked to, and it looks pretty simple:
Yep, sorry guys, I'll try to get https://github.com/vuejs/jsx done by the end of the week, will completely redo v-model and event modifiers and make that all a part of that monorepo.
Woohoo! Thanks @nickmessing. 😄
Any advance on this? For now this is my approach:
<div>
<input type="text" onInput={e => this.firstName = e.target.value} value={this.firstName} />
<Home firstName={this.firstName} />
</div>
It seems to me that this is still broken..
edit: Never mind, it looks like all is well if you follow @nickmessing 's link and also install https://github.com/vuejs/jsx
I'm not sure if the bug is here or in babel-plugin-transform-vue-jsx, but trying to use
v-model
in Babel 7 results in this error:Possibly related to https://github.com/vuejs/babel-plugin-transform-vue-jsx/issues/112.