Ryo4499 / stop-human-wave-tactics

2023 Publication of technical articles and results
https://datsujinkai.com
0 stars 0 forks source link

bunのbuildが通らない #144

Open Ryo4499 opened 4 months ago

Ryo4499 commented 4 months ago

問題

strapiをbun経由でbuildしているが通らない

原因

[INFO] Including the following ENV variables as part of the JS bundle:
    - ADMIN_PATH
    - STRAPI_ADMIN_BACKEND_URL
    - STRAPI_TELEMETRY_DISABLED
✔ Building build context (85ms)
⠋ Building admin panel
184 |   postMessage(...args) {
185 |     return this.#worker.postMessage(...args);
186 |   }
187 |   #onClose(e) {
188 |     this.#onExitPromise = e.code, this.emit("exit", e.code);
189 |   #onError(event) {
                ^
error: 1 | file:///home/node/stop-human-wave-tactics-backend/node_modules/prettier-plugin-packagejson/lib/esm-proxy/worker.js
                                                                                                                     ^
error: Unexpected end of file
    at blob:9c250c34-4576-4ae3-81dc-78824d9be247:1:114
 cause: {
  "isTrusted": true
}

      at #onError (node:worker_threads:189:11)
⠙ Building admin panel
Bun v1.1.17 (Linux x64 baseline)
error: script "build" exited with code 1

再現方法

backコンテナでbun run build

解決策

保留