cool-team-official / cool-admin-midway

🔥 cool-admin(midway版)一个很酷的后台权限管理框架,Ai编码、流程编排、模块化、插件化、CRUD极速开发,永久开源免费,基于midway.js 3.x、typescript、typeorm、mysql、jwt、vue3、vite、element-ui等构建
https://cool-js.com
MIT License
2.65k stars 588 forks source link

cool-admin-midway-7.x构建docker镜像报错 #178

Open godcop opened 5 months ago

godcop commented 5 months ago

image

godcop commented 5 months ago

找到原因,只需要把.dockerignore内的typings注释掉即可 image

zeQq commented 4 months ago

最新版本运行,请问有遇到下面问题吗?

> NODE_ENV=production node ./bootstrap.js

 [class DataSource]
 ERROR 18 Error: Cannot find module 'prettier'
 Require stack:
 - /app/dist/modules/plugin/service/types.js
 - /app/dist/modules/plugin/service/info.js
 - /app/dist/modules/base/controller/admin/comm.js
 - /app/node_modules/@midwayjs/core/dist/common/fileDetector.js
 - /app/node_modules/@midwayjs/core/dist/service/slsFunctionService.js
 - /app/node_modules/@midwayjs/core/dist/index.js
 - /app/node_modules/@midwayjs/bootstrap/dist/bootstrap.js
 - /app/node_modules/@midwayjs/bootstrap/dist/index.js
 - /app/bootstrap.js
     at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
     at Module.require (node:internal/modules/cjs/loader:1233:19)
     at require (node:internal/modules/helpers:179:18)
     at Object.<anonymous> (/app/dist/modules/plugin/service/types.js:21:18)
     at Module._compile (node:internal/modules/cjs/loader:1358:14)
     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
     at Module.load (node:internal/modules/cjs/loader:1208:32)
     at Module._load (node:internal/modules/cjs/loader:1024:12)
     at Module.require (node:internal/modules/cjs/loader:1233:19) {
   code: 'MODULE_NOT_FOUND',
   requireStack: [
     '/app/dist/modules/plugin/service/types.js',
     '/app/dist/modules/plugin/service/info.js',
     '/app/dist/modules/base/controller/admin/comm.js',
     '/app/node_modules/@midwayjs/core/dist/common/fileDetector.js',
     '/app/node_modules/@midwayjs/core/dist/service/slsFunctionService.js',
     '/app/node_modules/@midwayjs/core/dist/index.js',
     '/app/node_modules/@midwayjs/bootstrap/dist/bootstrap.js',
     '/app/node_modules/@midwayjs/bootstrap/dist/index.js',
     '/app/bootstrap.js'
   ]
}