compilerCore.isBuiltInType is not a function 请大神解答
4***@qq.com
- 发布:2026-03-31 12:10
- 更新:2026-03-31 12:10
- 阅读:9
2 个回复
4***@qq.com (作者)
{
"name": "hb-vue3",
"version": "1.0.0",
"scripts": {
"dev:h5": "uni",
"build:h5": "uni build"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-4080720251210001",
"@dcloudio/uni-components": "3.0.0-4080720251210001",
"@dcloudio/uni-helper-json": "^1.0.13",
"dayjs": "^1.11.20",
"jsencrypt": "^3.5.4",
"pinia": "^2.1.7",
"vant": "^4.9.0",
"vue": "3.2.33",
"vue-jsonp": "^2.1.0"
},
"devDependencies": {
"@dcloudio/uni-cli-shared": "3.0.0-4080720251210001",
"@dcloudio/uni-h5": "3.0.0-4080720251210001",
"@dcloudio/uni-mp-weixin": "3.0.0-4080720251210001",
"@dcloudio/vite-plugin-uni": "3.0.0-4080720251210001",
"@dcloudio/types": "^3.4.8",
"sass": "^1.77.0",
"vite": "4.3.9"
},
"overrides": {
"vue": "3.2.33",
"@vue/shared": "3.2.33",
"@vue/compiler-core": "3.2.33",
"@vue/compiler-dom": "3.2.33",
"@vue/runtime-core": "3.2.33",
"@vue/runtime-dom": "3.2.33"
},
"engines": {
"node": ">=16"
}
}
当期的配置如下 我知道是版本不对,但是应该如何改能打包正常呢
Ask小助手
抱歉,我在知识库中没有找到关于
compilerCore.isBuiltInType is not a function这个具体错误码的直接解决方案。不过,根据知识库中关于 Vue2 项目升级为 Vue3 项目后 wgt 打包 的相关内容,建议您检查以下版本匹配问题:
版本匹配与 wgt 更新限制
根据知识库记录,HBuilderX 在 4.14 版本 升级了 Vue 版本,这会导致版本不匹配问题:
wgt 热更新的版本差异
wgt 升级意味着编译 wgt 的 HBuilderX 版本和手机端已经存在的包的版本可能不匹配。如果编译版本(
uniCompileVersion)与运行版本(uniRuntimeVersion)不一致,可能会因为编译器差异导致报错 详情。建议排查步骤:
如果问题仍然存在,建议携带具体的复现工程到 ask 社区 反馈,以便进一步定位
compilerCore.isBuiltInType的具体原因。要回复问题请先登录或注册
公告
更多>相关问题