lerna ERR! yarn run prod exited 1 in ‘@theme/object’ error Command failed with exit code 1.
1、lerna ERR! yarn run prod exited 1 in ‘@theme/object’ error Command failed with exit code 1.。如图1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | $ E:\wwwroot\object\node_modules\.bin\lerna run --scope @theme /object prod lerna notice cli v5.1.8 lerna info versioning independent lerna notice filter including "@theme/object" lerna info filter [ '@theme/object' ] lerna info Executing command in 1 package: "yarn run prod" @theme /object: $ mix --production @theme /object: i Compiling Mix @theme /object: √ Mix: Compiled with some errors in 2.41m @theme /object: ERROR in E:\wwwroot\object\packages\types\index.ts @theme /object: 8:8-16 @theme /object: [tsl] ERROR in E:\wwwroot\object\packages\types\index.ts(8,9) @theme /object: TS2451: Cannot redeclare block-scoped variable '__data__' . @theme /object: ERROR in E:\wwwroot\object\packages\types\index.ts @theme /object: 13:8-17 @theme /object: [tsl] ERROR in E:\wwwroot\object\packages\types\index.ts(13,9) @theme /object: TS2451: Cannot redeclare block-scoped variable '__asset__' . @theme /object: webpack compiled with 2 errors @theme /object: error Command failed with exit code 1. lerna ERR! yarn run prod exited 1 in '@theme/object' error Command failed with exit code 1. Done in 573.86s. |
2、决定删除掉目录:node_modules ,重新执行 yarn、yarn prod 命令。
近期评论