-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] the Volar support error in the document #3826
Comments
For now, --- "types": ["element-plus/global"]
+++ "types": ["element-plus/es/global"] It has been fixed in #3756, and it will be released in next version. (today or tomorrow) |
Still no effect, please check ts docs |
It works on my project. Please provide a minimum repo. (or your |
FYI, here are my {
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["esnext", "dom", "dom.iterable", "scripthost"],
"allowJs": true,
"checkJs": false,
"jsx": "preserve",
"sourceMap": true,
"outDir": "./dist",
"importHelpers": true,
"strict": true,
"noImplicitAny": false,
"moduleResolution": "node",
"baseUrl": "./",
"paths": {
"@/*": ["./src/*"]
},
"types": ["vite/client", "element-plus/es/global"],
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["./src*"],
"exclude": ["node_modules"]
} |
I checked the problem, no need for |
node v16.10.0 tsconfig.json {
"compilerOptions": {
"target": "esnext",
"useDefineForClassFields": true,
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"jsx": "preserve",
"sourceMap": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"lib": ["esnext", "dom"],
"types": ["vite/client", "element-plus/es/global"]
},
"include": [
"src/**/*.ts",
"src/**/*.d.ts",
"src/**/*.tsx",
"src/**/*.vue"
]
} main.ts import { ElPagination } from 'element-plus'
//...
createApp(App).use(ElPagination).mount('#app') current expected |
i find a error if the vue file use ts 4.5.2, hints no effect. |
Element Plus version
1.1.0-beta.19
OS/Browsers version
Vue version
3.2.20
Reproduction Link
https://element-plus.org/en-US/guide/quickstart.html#volar-support
Steps to reproduce
Follow the steps in the document will not take effect
Maybe
compilerOptions.types
->include
What is Expected?
Prompt for global component type
What is actually happening?
No type related prompts
The text was updated successfully, but these errors were encountered: