Build failed in ms-master #1

Closed
opened 2022-07-22 15:04:15 +00:00 by origin · 1 comment

Administrator@DESKTOP-0S5URRP MINGW64 ~/ms-master/ms
$ yarn build
yarn run v1.22.19
$ lerna run build
lerna notice cli v4.0.0
lerna info Executing command in 23 packages: "yarn run build"
@ccms/client: $ yarn clean && tsc
@ccms/compile: $ yarn clean && tsc
@ccms/nashorn: $ yarn clean && tsc
@ccms/molang: $ yarn clean && tsc
@ccms/protocol: $ yarn clean && tsc
@ccms/client: $ rimraf dist
@ccms/compile: $ rimraf dist
@ccms/nashorn: $ rimraf dist
@ccms/protocol: $ rimraf dist
@ccms/molang: $ rimraf dist
@ccms/common: $ yarn clean && tsc
@ccms/container: $ yarn clean && tsc
@ccms/i18n: $ yarn clean && tsc
@ccms/websocket: $ yarn clean && tsc
@ccms/nodejs: $ yarn clean && tsc
@ccms/common: $ rimraf dist
@ccms/container: $ rimraf dist
@ccms/i18n: $ rimraf dist
@ccms/nodejs: $ rimraf dist
@ccms/websocket: $ rimraf dist
@ccms/polyfill: $ yarn clean && tsc
@ccms/polyfill: $ rimraf dist
@ccms/websocket: src/socket.io-client/socket.ts(160,35): error TS2469: The '+' operator cannot be applied to type 'symbol'.
@ccms/websocket: src/socket.io/broadcast-operator.ts(142,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
@ccms/websocket: src/socket.io/namespace.ts(301,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
@ccms/websocket: src/socket.io/socket.ts(196,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.
@ccms/websocket: error Command failed with exit code 2.
@ccms/websocket: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run build exited 2 in '@ccms/websocket'
lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Like this

Administrator@DESKTOP-0S5URRP MINGW64 ~/ms-master/ms $ yarn build yarn run v1.22.19 $ lerna run build lerna notice cli v4.0.0 lerna info Executing command in 23 packages: "yarn run build" @ccms/client: $ yarn clean && tsc @ccms/compile: $ yarn clean && tsc @ccms/nashorn: $ yarn clean && tsc @ccms/molang: $ yarn clean && tsc @ccms/protocol: $ yarn clean && tsc @ccms/client: $ rimraf dist @ccms/compile: $ rimraf dist @ccms/nashorn: $ rimraf dist @ccms/protocol: $ rimraf dist @ccms/molang: $ rimraf dist @ccms/common: $ yarn clean && tsc @ccms/container: $ yarn clean && tsc @ccms/i18n: $ yarn clean && tsc @ccms/websocket: $ yarn clean && tsc @ccms/nodejs: $ yarn clean && tsc @ccms/common: $ rimraf dist @ccms/container: $ rimraf dist @ccms/i18n: $ rimraf dist @ccms/nodejs: $ rimraf dist @ccms/websocket: $ rimraf dist @ccms/polyfill: $ yarn clean && tsc @ccms/polyfill: $ rimraf dist @ccms/websocket: src/socket.io-client/socket.ts(160,35): error TS2469: The '+' operator cannot be applied to type 'symbol'. @ccms/websocket: src/socket.io/broadcast-operator.ts(142,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'. @ccms/websocket: src/socket.io/namespace.ts(301,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'. @ccms/websocket: src/socket.io/socket.ts(196,33): error TS2731: Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'. @ccms/websocket: error Command failed with exit code 2. @ccms/websocket: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. lerna ERR! yarn run build exited 2 in '@ccms/websocket' lerna WARN complete Waiting for 2 child processes to exit. CTRL-C to exit immediately. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. **Like this**
Author

只是类型转换出错了 改成String(env)就好了

只是类型转换出错了 改成String(env)就好了
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: circlecloud/ms#1
No description provided.