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

Cannot read property 'childNodes' of undefined when updating #177

Closed
GuillaumeLeclerc opened this issue Mar 25, 2016 · 6 comments
Closed
Labels

Comments

@GuillaumeLeclerc
Copy link

Hello,

We updated vue validator in our project from version 2.0.0.alpha-21 to 2.0.0.beta-3 and we are getting this error: Cannot read property 'childNodes' of undefined.

We know there is a problem with vue-1.0.19 right now but this is not a duplicate since we fixed vue to 1.0.16.

Is there any migration guide we need to follow or is it an unknown bug ?

Thank you

@vnctaing
Copy link

I have the same problem whenever I try to use more than one <validator>

I am using vue-validator@2.0.0-beta.3 and vue@1.0.18

@kazupon
Copy link
Owner

kazupon commented Mar 25, 2016

Hi !!
Thank you for your reporting!!

Can you provide the repro code with jsfiddle or webpackbin or etc please ?

@kazupon
Copy link
Owner

kazupon commented Mar 30, 2016

Close (in-activity)

@kazupon kazupon closed this as completed Mar 30, 2016
@GuillaumeLeclerc
Copy link
Author

Sorry for the inactivity but I'm not able to reproduce in a fiddle since I don't know how to use vue-validator, one of my cowerkers did this. I just ran npm update and everything stopped working. I don't have more insights.

@kazupon
Copy link
Owner

kazupon commented Mar 30, 2016

You can fork the jsfiddle template, and add the vue-validator.js at external resouces.
http://jsfiddle.net/5sH6A/

@kating
Copy link

kating commented Apr 1, 2016

I have same problem, and made a repro code.
http://jsfiddle.net/fvkux5dq/

using vue-validator@2.0.0 and vue@1.0.20

I noticed:

  • This happen when using custom component and more than one validator element.
  • vue-validator pass not HTMLElement but DocumentFragment to FragmentFactory constructor
  • FragmentFactory set linker from cache, using key generated from HTMLElement. DocumentFragment instead of HTMLElement can't create proper cache key. (@vuejs)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants