When importing a file, the file clearly exists but an error is reported:
File 'xxx/packages/@vue/src/use-list.ts' is not listed within the file list of project 'xxx/packages@/vue/tsconfig.json'. Projects must list all files or use an 'include' pattern.
resolvent:
stay Is not listed within the file to add or modify a regular path to the include in the file indicated.
At present, the file indicating the path regularity problem is tsconfig.json, so go to the tsconfig.json file to view the include item.
tsconfig.json:
{
"include": ["src"],
}
Modified tsconfig.json:
{
"include": ["src/**/*.ts"],
}
Read More:
- The too many open files solution appears in stream classes such as files.list
- Run with Python console solution is set by default for all projects in pcharm
- Grep finds all files containing a string in Linux
- Clion develops STM32, adds files and compiles with an error “no such file or directory”“
- Golang gets the list of files under the folder
- VS2010 compiler can’t open include file: “GL / glaux. H”: no such file or directory
- Linux shell RM deletes all. O suffix files in the subdirectory
- Cannot open include file: ‘io.h‘: No such file or directory
- error: goland –build constraints exclude all Go files
- Win10 vs 2017 prompt cannot open include file: “windows. H”: no such file or director
- Error in installing torch vision or pilot on Linux or Jetson nano: the headers or library files could not be found for JPEG
- Linux QT download / usr / include / C + + / 7/ cstdlib:75 : 15: fatal error: stdlib. H: no such file or directory error
- #During OpenGL development, fatal error C1083: can’t open include file: “GL / glut. H”: no such file or directory
- The template tags of all vscode Vue files report errors in red~
- Some projects cannot be imported because they already exist in the workspace
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- How to solve the problem of “unable to open include file:” graphics. H “: no such file or directory”
- gcc /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
- Error Kernel Pattern
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space