<script setup>
import {
onShow
} from "@dcloudio/uni-app";
</script>
- 发布:2023-05-08 16:30
- 更新:2023-05-09 11:53
- 阅读:276
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX版本号: 3.8.1
示例代码:
操作步骤:
cli创建一个vue3+ts的项目,在vue文件内写入以下代码,然后就会开始代码提示失效,过一会就会提示ts崩溃
<script setup>
import {
onShow
} from "@dcloudio/uni-app";
</script>
cli创建一个vue3+ts的项目,在vue文件内写入以下代码,然后就会开始代码提示失效,过一会就会提示ts崩溃
<script setup>
import {
onShow
} from "@dcloudio/uni-app";
</script>
预期结果:
不意外崩溃
不意外崩溃
实际结果:
ts语言服务崩溃,导致代码助手失效 报以下提示: The Typescript language service died 5 timesright after it got started. The service will notbe restarted
ts语言服务崩溃,导致代码助手失效 报以下提示: The Typescript language service died 5 timesright after it got started. The service will notbe restarted
bug描述:
cli版本的vue3+ts项目,打开标签卡的时候,如果标签卡内的代码有使用setup语法糖导入@dcloudio/uni-app的内容会导致ts崩溃,弹窗提示The Typescript language service died 5 timesright after it got started. The service will notbe restarted,并且代码提示全部失效,在ts文件内编辑后保存文件会导致Hbuildex崩溃