Skip to content

Commit 779aa42

Browse files
authored
docs: optimize dts 001 error: delete cache dir first (#3615)
1 parent f4f843d commit 779aa42

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ When compiling the exported (`exposes`) file TS type, the current project's `tsc
88

99
## Solutions
1010

11-
Execute the `cmd` command in the error message parameter in the terminal, and repair the file or `tsconfig` according to the error message.
11+
1. Delete the `node_modules/.cache/mf-types` directory
12+
2. Execute the `cmd` command in the error message parameter in the terminal, and repair the file or `tsconfig` according to the error message.
1213

1314
If you want to ignore the type check error in ts, you can set [`compilerOptions.noCheck`](https://www.typescriptlang.org/tsconfig/#noCheck) to `true` in `tsconfig.json` (This option is only supported for ts 5.5 and above)
1415

apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import ErrorCodeTitle from '@components/ErrorCodeTitle';
88

99
## 解决方法
1010

11-
在 terminal 中执行报错信息参数中的 `cmd` 命令,根据错误信息对文件或者 `tsconfig` 进行修复。
11+
1. 删除 `node_modules/.cache/mf-types` 目录
12+
2. 在 terminal 中执行报错信息参数中的 `cmd` 命令,根据错误信息对文件或者 `tsconfig` 进行修复。
1213

1314
若你希望忽略 ts 中的类型检查错误,可在 `tsconfig.json` 中设置 [`compilerOptions.noCheck`](https://www.typescriptlang.org/tsconfig/#noCheck)`true`(该选项仅支持 ts 5.5 及以上版本)
1415

0 commit comments

Comments
 (0)