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"
Read More:
- [Solved] Vue Error: Duplicate keys detected: ‘74004’. This may cause an update error
- [Solved] Vue echarts Error: Initialize failed: invalid dom.
- Vue project change directory run error:Multiple assets emit different content to the same filename index.html
- [Solved] Binding onclick event in JS: for loop: error uncaught typeerror: cannot set properties of undefined (setting ‘classname’)
- [Solved] Vue3 Error: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug. P
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- How to React page to achieve entry and exit animation
- Vue init webpack Error: unable to verify the first certificate
- Vue: How to Fix “not displaying the holder in IE9 and below”
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- CSS to achieve dynamic display of picture text by mouse touch
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- [Solved] Error Rule can only have one resource source (provided resource and test + include + exclude)
- How to Block a frame with origin from accessing a cross origin frame
- [Solved] react-router-dom Error: <NavLink>activeClassName
- [Solved] Vue project deploys nginx to refresh the interface 404 Error
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- How to Solve electron import page Error
- [Solved] Vue3 Configuration routing error: Catch all routes (“*“) must now be defined using a param with a custom regexp.
- [Solved] Vue Start Project Error: ValidationError: webpack Dev Server Invalid Options