TypeError: [vite:vue] Cannot read properties of undefined (reading 'type')
at genNode (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3782:16)
[HBuilder] 13:01:34.656 at genNode (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3786:7)
[HBuilder] 13:01:34.667 at genNodeList (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3761:7)
[HBuilder] 13:01:34.675 at genNodeListAsArray (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3748:3)
[HBuilder] 13:01:34.684 at genNodeList (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3759:7)
[HBuilder] 13:01:34.690 at genVNodeCall (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3924:3)
[HBuilder] 13:01:34.699 at genNode (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3807:7)
[HBuilder] 13:01:34.707 at genNode (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3786:7)
[HBuilder] 13:01:34.717 at genNodeList (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3761:7)
[HBuilder] 13:01:34.722 at genNodeListAsArray (D:\HBuilderX4.24\HBuilderX\plugins\uniapp-cli-vite\node_modules\@vue\compiler-core\dist\compiler-core.cjs.prod.js:3748:3) {
[HBuilder] 13:01:34.732 code: 'PLUGIN_ERROR',
[HBuilder] 13:01:34.739 plugin: 'vite:vue',
[HBuilder] 13:01:34.747 hook: 'transform',
- 发布:2024-08-06 13:16
- 更新:2024-08-07 10:47
- 阅读:134
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window10
HBuilderX类型: 正式
HBuilderX版本号: 4.24
手机系统: iOS
手机系统版本号: iOS 15
手机厂商: 苹果
手机机型: iOS 15
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
1
1
预期结果:
1
1
实际结果:
1
1
bug描述:
hb3.99版本云打包正常
hb4.24版本打包报错
5***@qq.com (作者)
找到原因了;hb升级后,我在项目里面有个组件和hb的组件重名导致的。谢谢
2024-08-10 10:21