Comments (4)
感谢回复,问题已解决,原因是未在 tsconfig.json
中添加 vueCompilerOptions
配置,导致异常。
就是以前啥问题也没有,今天啥都没动,突然报错了
from uni-app-types.
我这边在使用 volar 1.8.13,但没有出现你提到的问题。
能否请你检查一下项目配置呢?
- 需要启用 接管模式 Takeover Mode。如果不想启用接管模式,可以安装 TypeScript Vue Plugin (Volar)。启用或安装后需要重启 VSCode。
- 不要忘了在相应的
tsconfig.json
里面配置vueCompilerOptions
,重启 VSCode
from uni-app-types.
from uni-app-types.
今天啥都没动,突然报错了
This is life. 😄
from uni-app-types.
Related Issues (20)
- 自定义组件类型声明文件出现冲突 HOT 19
- types declare HOT 2
- 优化类型 HOT 1
- @vue/server-renderer依赖版本跟uni官方提供的vue库依赖版本不一致 HOT 5
- 建议增加组件 event 类型 HOT 4
- `CustomEvent` 等事件类型的讨论 HOT 5
- vscode 自动升级volar 插件导致的 uni-app-types 类型失效 HOT 8
- volar / vue-tsc@^1.6.4 该如何配置? HOT 16
- `nativeTags` Usage problem HOT 2
- volar >1.7.12 如何配置? HOT 2
- vscode的uni组件都报错,不知道是哪里的问题 HOT 1
- webstorm 类型提示不出来 HOT 8
- Uni类型缺失 HOT 2
- "experimentalRuntimeMode": "runtime-uni-app" 不起作用 HOT 2
- the new version of vue-official can't support nativeTags HOT 1
- 升级 Vue 到新版本后, 类型失效 HOT 5
- webstorm 上会对模版上的 class 显示异常 HOT 2
- 如果 Volar 版本号高于 2.0.12,uni-app 自带的标签类型定义会报错 HOT 2
- [email protected](含)之后的版本失效 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uni-app-types.