TS error "umi" has no exported member 'xxx'

TS error "umi" has no exported member 'xxx'

Problem Description

There is an error in the ts file in the umi project: "umi" has no exported member 'xxx'

problem result

The main problem is the recognition of umi by ts;
check the configuration of the tsconfig.json file

{
  "compilerOptions": {

    "paths": {
      "@/*": ["src/*"],
      "@@/*": ["./src/.umi/*"] // 解决 umi 找不到部分模块的问题
    },

  },
}

Guess you like

Origin blog.csdn.net/weixin_46600931/article/details/130077173