wannianma opened a new issue #1503:
URL: https://github.com/apache/apisix-dashboard/issues/1503
# Bug report
Build v2.4 error.
## Describe the bug
Build v2.4, get Some js build error, same error when use docker build
dashboard.
## Expected behavior
expect dashboard build success.
## Screenshots
```
yarn install v1.22.10
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
$ umi g tmp
Done in 7.29s.
yarn run v1.22.10
$ umi build
● Webpack █████████████████████████ chunk asset optimization (92%)
TerserPlugin
events.js:174
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at ChildProcess.target._send (internal/child_process.js:762:20)
at ChildProcess.target.send (internal/child_process.js:634:19)
at ChildProcessWorker.send
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/workers/ChildProcessWorker.js:299:17)
at WorkerPool.send
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/WorkerPool.js:32:34)
at Farm._process
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/Farm.js:147:10)
at Farm._enqueue
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/Farm.js:176:10)
at Farm._push
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/Farm.js:183:12)
at Promise
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/Farm.js:106:14)
at new Promise (<anonymous>)
at Farm.doWork
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/Farm.js:69:21)
at JestWorker._callFunctionWithArgs
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/node_modules/jest-worker/build/index.js:182:23)
at scheduledTasks.push.limit
(/usr/local/apisix-dashboard/web/node_modules/terser-webpack-plugin/dist/index.js:304:45)
Emitted 'error' event at:
at process.nextTick (internal/child_process.js:766:39)
at process._tickCallback (internal/process/next_tick.js:61:11)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this
command.
make: *** [build] Error 1
[root@T65 apisix-dashboard]# node version
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/usr/local/apisix-dashboard/version'
at Function.Module._resolveFilename
(internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
```
## System information
- OS: [CentOS Linux release 7.7.1908 (Core)]
- Browser (if applies) [e.g. Chrome, Safari, Edge]
- node version: v10.24.0
- npm version: v6.13.4
- yarn version: v1.22.10
- go version: go1.16 linux/amd64
## Additional context
Add any other context about the problem here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]