vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 152 forks source link

Fails to build when using custom two-way filter #167

Closed yuanchuan closed 7 years ago

yuanchuan commented 7 years ago

sample.vue file

<template>
  <input v-model="names | myfilter" />
</template>

<script>
  module.exports = {
    data() {
      return {
        names: ['bus', 'bike', 'car']
      }
    },
    filters: {
      myfilter: {
        read(val) { return val },
        write(val) { return val }
      }
    }
  }
</script>

Command:

$ browserify -t vueify sample.vue

Error:

SyntaxError: Assigning to rvalue (1:289) while parsing file:
....
mgrinspan commented 7 years ago

Two-way filters have been removed in Vue 2.0. See the migration guide.

yuanchuan commented 7 years ago

Didn't noticed that. Thanks