我在使用动态插槽的时候报错:[plugin:vite:vue] Codegen node is missing for element/if/for node. Apply appropriate transforms first. #11698
Unanswered
chinawangyatao
asked this question in
Help/Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🧐 Problem Description
我在组件封装的时候用了动态插槽
但是他报错了
我不知道该怎么解决
💻 Sample code
🚑 Other information
我的 packjson
{
"name": "vite_vue3_js_template",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"once": "yarn && yarn dev",
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"prettier": "prettier . --write",
"jsdoc": "jsdoc src -r",
"codeGenerator": "cd codeGenerator && npm install && npm run start"
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@vitejs/plugin-vue-jsx": "^4.0.1",
"@vueuse/core": "^10.11.0",
"axios": "^1.7.3",
"element-plus": "^2.7.8",
"file-saver": "^2.0.5",
"fuse.js": "6.6.2",
"js-cookie": "^3.0.5",
"lodash-es": "^4.17.21",
"normalize.css": "^8.0.1",
"nprogress": "^0.2.0",
"pinia": "^2.2.0",
"pinia-plugin-persistedstate": "^3.2.1",
"unplugin-icons": "^0.19.1",
"vite-plugin-qiankun": "^1.0.15",
"vue": "^3.4.31",
"vue-router": "^4.4.2"
},
"devDependencies": {
"@vitejs/plugin-vue": "^5.0.5",
"autoprefixer": "^10.4.20",
"jsdoc": "^4.0.3",
"postcss": "^8.4.41",
"prettier": "3.3.3",
"sass": "^1.77.8",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"unplugin-auto-import": "^0.18.2",
"unplugin-vue-components": "^0.27.3",
"vite": "^5.3.4"
}
}
Beta Was this translation helpful? Give feedback.
All reactions