diff --git a/apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx b/apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx index 2064d84c3c0..3c63e55a012 100644 --- a/apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx +++ b/apps/website-new/docs/en/guide/troubleshooting/type/TYPE-001.mdx @@ -8,7 +8,8 @@ When compiling the exported (`exposes`) file TS type, the current project's `tsc ## Solutions -Execute the `cmd` command in the error message parameter in the terminal, and repair the file or `tsconfig` according to the error message. +1. Delete the `node_modules/.cache/mf-types` directory +2. Execute the `cmd` command in the error message parameter in the terminal, and repair the file or `tsconfig` according to the error message. 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) diff --git a/apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx b/apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx index ca28e2856d4..3c3ef6774d6 100644 --- a/apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx +++ b/apps/website-new/docs/zh/guide/troubleshooting/type/TYPE-001.mdx @@ -8,7 +8,8 @@ import ErrorCodeTitle from '@components/ErrorCodeTitle'; ## 解决方法 -在 terminal 中执行报错信息参数中的 `cmd` 命令,根据错误信息对文件或者 `tsconfig` 进行修复。 +1. 删除 `node_modules/.cache/mf-types` 目录 +2. 在 terminal 中执行报错信息参数中的 `cmd` 命令,根据错误信息对文件或者 `tsconfig` 进行修复。 若你希望忽略 ts 中的类型检查错误,可在 `tsconfig.json` 中设置 [`compilerOptions.noCheck`](https://www.typescriptlang.org/tsconfig/#noCheck) 为 `true`(该选项仅支持 ts 5.5 及以上版本)