Could not find a declaration file for module 'module-name'. '/path/to/module-name.js' implicitly has an 'any' type

解决方案:在tsconfig.json中加入下面红色标注的一行配置

// tsconfig.json

{
  "compileOnSave": false,
  "compilerOptions": {
    ........
    "noImplicitAny": false,
  },
.....
}

 

Could not find a declaration file for module 'module-name'. '/path/to/module-name.js' implicitly has an 'any' type

上一篇:css input 设置只读样式


下一篇:pthread的运行时不一致