ray-note/工具相关文档/VSCode/VSCode 相关.md

18 lines
793 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### Java 运行的问题
1. 在运行时,发现不能识别 主类的加载,
解决办法:
- 方法一: 清除掉,`.vscode` 文件夹下的 `settings.json``lauch.json`, 退出重新加载,系统编译之后, 选择 `Fix and clean`, 之后再重新加载,问题就消失了,展示没找到其他的解决办法
- 方法二: 在文件查看的侧边栏中的Java Project菜单左侧`...` 选择clean workspace再重载一次项目即可
### Vue + TS
1. 无法找到包:
- 问题描述在Vue3 + TS 的环境中,`can not find modules` , 但是包是已经下载好依赖的
- 解决办法:在`tsconfig.json` 中关闭js的strict
```
{
"compilerOptions": {
"strict": false,
"noImplicitThis": false
}
}
```