Tag Archives: Vue Startup Error

[Solved] Vue Startup Error: Emitted value instead of an instance of Error

Vue project install is normal. When NPM run dev is started, the project cannot be started due to warnings.

Exception prompt:

(Emitted value instead of an instance of Error)
 <el-row v-for="item in order.products">: component lists rendered with v-for should have explicit keys. 
 See https://vuejs.org/guide/list.html#key for more info.

Anomaly analysis:

On the child elements of the transition-group tag, do not use the v-for index as the key, otherwise it is the same as not using the key

Solution:
V-for specifies subscript, :key="index"

Vue Startup Error: 98% after emitting CopyPlugin This dependency was not found:

Svn downloaded my colleague’s Vue last night. This morning, NPM install kept reporting errors. I was so angry that I directly copied the node in the previous file_ Modules, then continue NPM run Dev and report an error (as shown in the figure below):

I’ve been looking online and couldn’t find it. I also asked my colleagues. My colleagues said I might have a problem with NPM install. Continue to find the answer on Baidu CSDN!! Finally, the effort pays off. Now let’s show you my solution (below):

mainly look at points 1 and 2. First open your folder according to the directory 1, and then look at the prompt of 2 to find this one. My prompt is to tell me that I quoted a file I don’t have, and then comment it out. It’s OK to run smoothly