Invalid prop: custom validator check failed for prop “status” encountered during project debugging##
First of all, I was confused. I went to the prop and didn’t have status. I really couldn’t figure out what was going on. Through the global search of status, I realized that it was the problem of style components. Because of the company’s confidentiality, I really wanted to simulate the code
<el-progress :percentage="stepPercentage(item.step)" status="error"></el-progress>
The status in this code is the key to error reporting. The reason is that I added an unknown attribute error of status, which makes it unrecognizable
be careful
1. The value of status can only be one of “success/exception/warning”. Other values will give the above warning. If you have to judge according to the conditions and need to give the default color, you can assign null [null, no quotation marks] to the value
<el-progress :percentage="stepPercentage(item.step)" :status="item.step == 4 ?'success' :null"></el-progress>
2. You can’t have spaces in the parameters following status. You need to correct the format
Read More:
- [Vue warn]: Invalid prop: custom validator check failed for prop “index“
- [Vue warn]: Invalid prop: custom validator check failed for prop “navigationBarTextStyle“.
- [Solved] Invalid prop: type check failed for prop “modelValue“. Expected Number…
- [Vue warn]: Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- [Solved] Invalid prop: type check failed for prop “index“. Expected String, got Undefined
- [Vue warn]: Invalid prop: type check failed for prop [How to Solve]
- Please transfer a valid prop path to form item
- How to Solve VUE Error: Avoid mutating a prop directly since the value will be overwritten …
- How to Solve Error: [Vue warn]: Missing required prop: “value”
- [Vue warn]: Error in mounted hook: “Error: please transfer a valid prop path to form item“
- [Solved] el-date-picker Error: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders.
- [Solved] Error in mounted hook: “Error: please transfer a valid prop
- [Vue warn]Error in mounted hook: “Error: please transfer a valid prop path to form item“
- Vue modifies the value passed by props error: Avoid mutating a prop directly since the value will be overwritten whenever the par
- [Solved] Error in v-on handler: “Error: please transfer a valid prop path to form item
- [Solved] Console Error: Error: Request failed with status code 405
- error: Unexpected console statement (no-console) [How to Solve]
- [Solved] error: Unexpected console statement (no-console)
- vue.config.js build Package UglifyJsPlugin to clear console and print console.log Error: `warnings` is not a supported option
- [Solved] Vue Project Modify Page Error: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory