-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Intellisense for components are not available #2586
Comments
Normally things may happens like this (let's say your project directory is 'src'):
stateDiagram-v2
A: src/tsconfig.json
B: src/.nuxt/tsconfig.json
C: src/.nuxt/nuxt.d.ts
D: src/.nuxt/components.d.ts
A -->B
B --> C
C --> D
In conclusion, I don't think this is a bug related to Nuxt Content or its build system. It's more likely related to the Vue Plugin you used in your VS Code or the TypeScript language server in your VS Code. If every steps above looks good, please have a try to restart your TS server. |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stalled for 30 days with no activity. |
Environment
Reproduction
no
Describe the bug
With the exception of the ContentRendererMarkdown component, all components are written using the options style and defineComponent function without lang="ts", and the relevant declares in the components.d.ts file in the .nuxt directory are as follows, which loads not a d.ts file, but a .vue file, causing vscode's intellisense to fail on these components。



Looking at the source code, there is a lang="ts". I tried to compile the source code, same thing. Is this a bug in @nuxt/module-builder?

So I need to add the declarations for these components myself。
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: