question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

components.d.ts has an error prompt.

See original GitHub issue

I tried to use unplugin-vue-components to automatically import components. After the dependency is installed, the page can be displayed normally. However, in components.d.ts file has the following prompts:

image

Restarting vscode doesn’t work either, but the page is displayed correctly.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
ycs77commented, Jul 9, 2022

Include components.d.ts to tsconfig.json will be solved:

{
  "compilerOptions": {
    ...
  },
  "include": [
    "components.d.ts", // <== add this line
    "src/**/*",
    "src/**/*.vue"
  ]
}
0reactions
imrim12commented, Oct 24, 2022

Include components.d.ts to tsconfig.json will be solved:

{
  "compilerOptions": {
    ...
  },
  "include": [
    "components.d.ts", // <== add this line
    "src/**/*",
    "src/**/*.vue"
  ]
}

Thanks, this helps resolve the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

cant import a js bit component into a ts project - `Could not find ...
when trying to npm install a javascript component into a typescript project, I get a typescript error for missing the d.ts file or...
Read more >
Working with JavaScript in Visual Studio Code
If you are unsure what version of TypeScript is currently active in your workspace, run the TypeScript: Select TypeScript Version command to check....
Read more >
Build a component library with React and TypeScript
Learn to create a component library with React and TypeScript in this in-depth tutorial that includes testing and deploying to npm.
Read more >
NgModule FAQ - Angular
Import FormsModule from @angular/forms if your components have [(ngModel)] ... and Module 'D' imports [C, B, A] , then 'D' triggers the evaluation...
Read more >
Create your first component - Microsoft Learn
At the terminal prompt, create a new component project by passing basic ... you will need to generate ManifestDesignTypes.d.ts file in this ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found