Closed threedayAAAAA closed 2 years ago
It works fine.
Does you config.ts is in src/util
? Pls check your auto-imports.d.ts if the data
has been check->imported
dirs: [
'./src/composables',
'./src/util',
],
It works fine. Does you config.ts is in
src/util
? Pls check your auto-imports.d.ts if thedata
has been check->importeddirs: [ './src/composables', './src/util', ],
You can check the reproduction link
https://codesandbox.io/s/elastic-bose-ok23h3?file=/src/main.ts
Please add auto-imports.d.ts
to your tsconfig
Please add
auto-imports.d.ts
to your tsconfig
Seems like I'm providing a wrong use case. An error is reported when the ternary operator gets the value of auto-import. For example the picture below
Describe the bug
Not working properly when using ternary operator
Reproduction
Not working properly when using ternary operator
System Info
Used Package Manager
pnpm
Validations