You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use browserify-simple-2.0 or webpack-simple-2.0 vue cli template with hot module replacement. Hard reload won't reproduce this issue.
<template><divid="app"><divv-for="item in 10"><!-- Without :key in span tag, when you reduce the range (e.g.: from 10 to 5) error will occur. When increasing range error is not present. --><span>M</span><!-- <span :key="item">M</span> --></div></div></template>
What is Expected?
Use hmr without a need to use :key on static element?
What is actually happening?
DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. is thrown whenever you reduce v-for range and you don't provide :key property to static element inside v-for.