We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
onMounted works fine for <script setup> with vscode, no warnings. .eslintrc has
onMounted
<script setup>
.eslintrc
extends: ["eslint:recommended", "plugin:vue/base", "plugin:vue/vue3-essential", "plugin:vue/vue3-recommended", "plugin:vue/vue3-strongly-recommended", "@antfu"],
Adding lang="ts" makes vscode show warning cannot find name 'onMounted', but $ref has no warning.
lang="ts"
cannot find name 'onMounted'
$ref
How to solve this?
Maybe related to #61 ?
The text was updated successfully, but these errors were encountered:
We temporarily close this due to the lack of enough information. Please provide a minimal reproduction to reopen the issue. Thanks.
Sorry, something went wrong.
Looking at vitesse (thanks for it), found the solution: Add to AutoImport in vite config:
AutoImport
dts: 'src/auto-imports.d.ts',
for me, it has fixed the problem: add *.d.ts to tsconfig.json
*.d.ts
tsconfig.json
// tsconfig.json "include": [ "*.d.ts", "src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue" ],
No branches or pull requests
onMounted
works fine for<script setup>
with vscode, no warnings..eslintrc
hasAdding
lang="ts"
makes vscode show warningcannot find name 'onMounted'
, but$ref
has no warning.How to solve this?
Maybe related to #61 ?
The text was updated successfully, but these errors were encountered: