Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
godcop opened this issue Jun 25, 2024 · 2 comments
Open

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

godcop opened this issue Jun 25, 2024 · 2 comments

Comments

@godcop
Copy link

godcop commented Jun 25, 2024

image

@godcop
Copy link
Author

godcop commented Jun 25, 2024

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

@zeQq
Copy link

zeQq commented Jul 8, 2024

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

> 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'
   ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants