Open godcop opened 5 months ago
找到原因,只需要把.dockerignore内的typings注释掉即可
最新版本运行,请问有遇到下面问题吗?
> 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'
]
}