Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

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

Closed
@yuanchuan

Description

@yuanchuan

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:
....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions