Open xjspace opened 12 months ago
感谢您的反馈,这个告警产生的原因是模板使用了老旧的语法,导入了 defineProps
我们会尽快优化,您可以先排查本地的 defineProps 并去掉
- import { defineProps } from 'vue';
Bot detected the issue body's language is not English, translate it automatically.
Thank you for your feedback. The reason for this warning is that the template uses old syntax and imports defineProps.
We will optimize as soon as possible. You can check the local defineProps first and remove it.
- import { defineProps } from 'vue';
Version
@opentiny/vue@3.10.1
Vue Version
2.69
Link to minimal reproduction
使用$ tiny init 命令,初始化完成后,tiny start 就出现了
Step to reproduce
新项目使用
$ tiny init ? 请选择一个适合您项目的套件进行初始化: (Use arrow keys) dev ---------- 开发tiny-cli套件和插件
? 请选择你想要初始化的模板 (Use arrow keys)
? 输入套件/插件名称(tiny-toolkit-/tiny-plugin- 开头) (tiny-toolkit-mytest) 选完类型和组件名称后,tiny会自动将项目模板初始化到你当前的文件夹内,并安装项目所需的依赖包。
耐心等待一分钟,会出现如下提示,说明你组件开发环境已经初始化成功了,可用你熟悉的IDE进行组件开发。
--------------------初始化成功,请按下面提示进行操作--------------------
$ tiny start # 可一键开启项目开发环境 $ tiny help # 可查看当前套件的详细帮助
--------------------技术支持: xxx--------------------
$ tiny start ....... [@vue/compiler-sfc]
defineProps
is a compiler macro and no longer needs to be imported.What is expected
vite v4.5 dev server running at:
ready in 1089ms.
What is actually happening
获得了这个错误 [@vue/compiler-sfc]
defineProps
is a compiler macro and no longer needs to be imported.Any additional comments (optional)
tiny start 后