[HBuilder] 10:54:38.695 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.698 TS1110:Type expected.
[HBuilder] 10:54:38.698 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.701 TS1005:';' expected.
[HBuilder] 10:54:38.701 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.704 TS1128:Declaration or statement expected.
[HBuilder] 10:54:38.705 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:40
[HBuilder] 10:54:38.708 TS1128:Declaration or statement expected.
[HBuilder] 10:54:38.708 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.713 TS1110:Type expected.
[HBuilder] 10:54:38.713 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.717 TS1005:';' expected.
[HBuilder] 10:54:38.717 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:39
[HBuilder] 10:54:38.720 TS1128:Declaration or statement expected.
[HBuilder] 10:54:38.720 [tsl] ERROR at ..\node_modules\vue\types\jsx.d.ts:40
[HBuilder] 10:54:38.723 TS1128:Declaration or statement expected.
[HBuilder] 10:54:38.723 ERROR Build failed with errors.
大熊猫玩菜刀
- 发布:2022-07-07 10:59
- 更新:2022-10-26 11:04
- 阅读:1395
4 个回复
wendy徐 - 徐沐沐
修改node_modules\vue\types\jsx.d.ts
39行
[v:
--${string}
]: string | number | undefined-->
[v: string]: string | number | undefined
w***@163.com
vue2.7.13确实有问题,
我强制安装vue2.6.14就可以使用
npm i vue@2.6.14 -S
大熊猫玩菜刀 (作者) - 大熊猫玩菜刀
使用命令npm run build:app-plus打包正常,使用HBuilder X(3.4.18.20220630)无法打包,前端依赖版本:2.0.1-34920220630001
大熊猫玩菜刀 (作者) - 大熊猫玩菜刀
手动删除:node_modules\vue\types\jsx.d.ts,打包正常。
l***@gogpay.cn
这样确实可以,但是不知道有没有隐患
2022-09-02 13:47