Cannot find type definition file for 'q'. The file is in the program because: Entry point for react 项目打包报错解决思路 react 项目打包报错 查了下是因为项目根目录的tsconfig.json文件报错,提示没有q模块 解决思路 npm install --save-dev @types/q 然后再次执行npm run buidl就不报错了