Home > other >  When using VS Code, can't find the module fault.
When using VS Code, can't find the module fault.

Time:12-18


Vue program created using the Vue CLI (chose the TypeScript), after open the project with VS Code, found that '@/components/HelloWorld Vue' a red line below, prompt "always find module '@ components/HelloWorld Vue'."
<script lang="ts" & gt;
.
Import the HelloWorld from '@/components/HelloWorld. Vue';//@ is an alias to/SRC
.
</script>;

Reviewed the tsconfig. Json file set inside the
"Paths" : {
"@/" :
"SRC/"
]
},
Although does not affect the execution of the program, or want to know how to eliminate the red warning,
Please know the labyrinth of solution, thank you!

CodePudding user response:

I also encountered the same problem, can you solve it

CodePudding user response:

I also want to know how to solve this problem
  • Related