If files in tsconfig.json use regular rules, VSCode will not be able to find the third-party library type.

In tsconfig.json, files is a list of files specifying ts, which supports regular expressions, such as:

"files": [
  src/**/*.ts
]

There is no problem in compiling like this, but when using VSCode, it will show that the third-party symbol cannot be found.

 The solution is also very simple. Specify the relative path of each ts file in files, so that every time a file is added or deleted, it must be modified.

おすすめ

転載: blog.csdn.net/loveoobaby/article/details/127999511
おすすめ