Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 及以上版本)

Expand Down