This error is because the data type of the date component of Element cannot be Number
Solution: convert data to the string
number type to string type (recommended way two)
Method 1.
var date = toString(2022); // Disadvantage: can't convert underfind and null
Way 2
var date = String(2022); // can convert underfind and null
Way 3
var date = 2022 + ''; // string splicing
Read More:
- uniapp Use render Function Error: [Vue warn]: Error in beforeCreate hook: “TypeError: Cannot read property ‘_i‘ of
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- TypeError: r.indexOf is not a function TypeError: r.indexOf is not a function
- [Solved] Echart Error: Typeerror: axis Getaxesonzeroof is not a function
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Web Browser] “Uncaught TypeError: object is not a function“
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- [Solved] Vue Error: template or render function not defined
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Error in nextTick: “TypeError: undefined is not iterable
- The date selector Report Null Error in element is cleared
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function