Cause
When using table, because there are too many columns data, the data in columns is split into a separate JS file
and because customrender needs to be used and JSX needs to be used for rendering, an error is reported
Solution:
The final reference here is the solution given by a person in GitHub
address: https://github.com/vueComponent/ant-design-vue/issues/1183
Write the following in a separate JS file
import Vue from 'vue'
const h = new Vue().$createElement
This will solve the above problems
Read More:
- [Solved] ant design pro vue Startup Error: ERROR Failed to compile with 1 error 20:34:09 error in ./src/components/Num
- How to Solve “Vue is not defined” Error
- [Solved] vite2+vue3 jsx Error: React is not defined
- [Solved] Vue item error: Regeneratorruntime is not defined
- [Solved] Vue 3 Script Setup ESLint Error: ‘defineProps‘ is not defined
- vue eslint error ‘process‘ is not defined no-undef [How to Solve]
- [Solved] Vue3 process Error: Uncaught ReferenceError: process is not defined
- [Solved] Vue Error: template or render function not defined
- vue error: ‘ev’ is defined but never used (no-unused-vars)
- [Solved] Vuepress Package Error: document is not defined
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- [Solved] Vue Error: error ‘xxx‘ is defined but never used no-unused-vars
- [Solved] Vue Error: error: ‘to‘ is defined but never used (no-unused-vars)
- Vuepress build error: window is not defined [How to Solve]
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] vite package Error: globalThis is not defined
- [Solved] JQuery each Method Error: $XXX is not defined
- [Solved] Uncaught ReferenceError: axios is not defined
- [Solved] Vue uses webpack to package error: Createapp is not a function
- [Solved] Nuxt Import qrcodejs2.js / QRCode.js Error: document is not defined