Vue: Failed to execute 'insertBefore' on 'Node'

Created on 26 Aug 2016  路  2Comments  路  Source: vuejs/vue

Vue.js version

2.0rc3 (probably was occurring in 1.x versions but I'm not sure)

Reproduction Link

https://jsfiddle.net/7e0sfqo7/

Sorry it's not very minimal. Had a hell of a time reproducing this.

Steps to reproduce

Click "Change Data" button.

What is Expected?

New data will populate template.

What is actually happening?

Firefox: "NotFoundError: Node was not found"
Trace:
insertBefore()
updateChildren()
patchVnode()
updateChildren()
patchVnode()
patch()
lifecycleMixin/Vue.prototype._update()
lifecycleMixin/Vue.prototype._mount/vm._watcher<()
get()
run()
flushSchedulerQueue()
nextTickHandler()

Chromium: "Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node."

I'm assuming this is related/similar to https://github.com/vuejs/vue/issues/3043.

Most helpful comment

I also met

All 2 comments

I also met

The error is caused by <br> on line 363. It works when I remove it.
But looks like this error has more complex cause because it may work when I remove the other parts. 馃槙

Was this page helpful?
0 / 5 - 0 ratings

Related issues

finico picture finico  路  3Comments

paceband picture paceband  路  3Comments

paulpflug picture paulpflug  路  3Comments

wufeng87 picture wufeng87  路  3Comments

aviggngyv picture aviggngyv  路  3Comments