当前位置: 首页 > 知识库问答 >
问题:

visual-studio-code - vscode中写vue3为什么在事件函数上报红线?

孔和风
2023-07-04

新创建的空白项目在 el-button 的点击事件函数上报了红线,是哪里出问题了?
image.png

共有1个答案

竺承望
2023-07-04

项目右下角会有一个选择TS版本的地方,切换到工作区版本即可,VSC默认好像是会选择内置的TS版本。

图片.png
另外 Vue 文档中也提到了相关的配置调整 �� 搭配 TypeScript 使用 Vue | Vue.js

 类似资料:
  • VSCode 提供给开发者一个新的简约开发工具的选择,它可以简化开发人员需要的编译-构建-调试流程。VSCode 是VS家族中第一个代码编辑器以及第一个支持OS X,Linux 和 Windows的跨平台开发工具。 VSCode 的初衷是提供一个强大的,迅捷的源代码编辑器,并且可以每日使用。VSCode 有很多开发者在编码及编辑中需要的特性,包括导航,自定义键盘快捷键绑定,语法高亮,括弧匹配,自动

  • VSCode,eslint 报错 Delete ↹eslint (prettier/prettier)? 这个要怎么改?

  • 如果你对扩展VS Code有兴趣,你就应该看看这篇文档。在这篇文档里将对VS Code的插件做一个概括性的描述,并且将教你快速的制作你的第一个vs Code插件。如果你对更深入的插件制作内容有兴趣,那么你可以阅读这篇 文章. If you are interested in extending VS Code, you are in the right place. Here we present

  • vsc是一个比较潮比较新的编辑器(跨平台Mac OS X、Windows和 Linux ) vsc功能和textmate、sublime、notepad++,ultraedit等比较,毫不逊色 vsc尤其是在nodejs(调试)和typescript、go上支持尤其好 vsc提供了自定义 Debugger Adapter 和 VSCode Debug Protocol 从而实现自己的调试器 值得一

  • Android Studio / IntelliJ Visual Studio Code Installation and setup Follow the Set up an editor instructions to install the Dart and Flutter extensions (also called plugins). Updating the extension Up

  • Android Studio / IntelliJ Visual Studio Code Installation and setup Follow the Set up an editor instructions to install the Dart and Flutter extensions (also called plugins). Updating the extension Up