报错:Parameter ‘XXX‘ implicitly has an ‘any‘ type.解决方法

报错:Parameter ‘XXX’ implicitly has an ‘any’ type.解决方法

tsconfig.json添加"noImplicitAny": false,

或者 “strict”: true,改为false

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "removeComments": false,
    "strict": false, //<---或者修改这个
    "noImplicitAny": false // <-----
  }
}

你可能感兴趣的:(TS,vue,typescript,vue)