arco-design-vue icon indicating copy to clipboard operation
arco-design-vue copied to clipboard

build 报错(node 12.22.11)

Open Yuxiaogang-Gavin opened this issue 3 years ago • 2 comments

基本信息

  • 依赖包名 及 版本: @arco-design/[email protected]
  • 浏览器版本: chrome101.0.4951.54

额外补充

D:\www\arco_demo\[email protected]@vscode-jsonrpc\lib\common\linkedMap.js:40 return this._head?.value; ^

SyntaxError: Unexpected token '.' at wrapSafe (internal/modules/cjs/loader.js:915:16) at Module._compile (internal/modules/cjs/loader.js:963:27) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object. (D:\www\arco_demo\[email protected]@vscode-jsonrpc\lib\common\api.js:37:21) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files\nodejs\node_cache_logs\2022-05-15T00_31_08_356Z-debug.log

Yuxiaogang-Gavin avatar May 15 '22 00:05 Yuxiaogang-Gavin

@Yuxiaogang-Gavin 这个是构建配置的问题,不支持 ?. 的形式。检查下 ts 或者 bable 配置

flsion avatar May 18 '22 08:05 flsion

@Yuxiaogang-Gavin 升级下 typescript 版本再试下

hehehai avatar Aug 11 '22 08:08 hehehai

该问题长期无跟踪暂时关闭,后面有补充再可开启。

hehehai avatar Sep 07 '22 11:09 hehehai