Solve the error: import introduces components in antd, ts error: xxx.d.ts type declaration is only case-sensitive with xxx.d.ts type files

In the tsconfig.json file in the project root directory , add the forceConsistentCasingInFileNames attribute to false (turn off ts case verification).

{
  "compilerOptions": {
    "forceConsistentCasingInFileNames": false, // 是否开启ts文件系统大小写敏感; to fix: mac上引入antd报错:类型文件名大小写不同错误。
  },
}

Guess you like

Origin blog.csdn.net/qq_38969618/article/details/130323328