Skip to content
This repository has been archived by the owner on Dec 25, 2017. It is now read-only.

vue-validator for commonJS module is error #268

Closed
wklc2014 opened this issue Jul 1, 2016 · 2 comments
Closed

vue-validator for commonJS module is error #268

wklc2014 opened this issue Jul 1, 2016 · 2 comments

Comments

@wklc2014
Copy link

wklc2014 commented Jul 1, 2016

vue & vue-validator version

1.0.26, 2.1.3

Reproduction Link

Steps to reproduce

<input type="text" v-validate:username="{required: true}">
                        <div class="errors">
                            <p v-if="$validator1.username.required">Required your name.</p>
                        </div>
                    </div>

console panel is allways show

vue.common.js:1935 Uncaught TypeError: Cannot read property 'required' of undefined

What is Expected?

What is actually happening?

This is use CommonJS module above, but when I use separate compilation of files that was right

@kazupon
Copy link
Owner

kazupon commented Jul 4, 2016

related #130

@kazupon
Copy link
Owner

kazupon commented Jul 13, 2016

Close (in-activity)

@kazupon kazupon closed this as completed Jul 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants