没有不值得去解决的问题,也没有不值得去学习的技术!

lerna ERR! yarn run prod exited 1 in ‘@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.

1. lerna ERR! yarn run prod exited 1 in ‘@theme/object’ error Command failed with exit code 1. As shown in Figure 1.

lerna ERR! yarn run prod exited 1 in '@theme/object' error Command failed with exit code 1.
Figure 1
Plaintext

$ 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.
@theme/object: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! yarn run prod exited 1 in '@theme/object'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Done in 573.86s.

2. Decided to delete the directory: node_modules, and re-run the yarn and yarn prod commands.

关于作者 · 持续学习与技术实践

我是一名拥有 15 年以上开发经验的技术从业者,自 2013 年起持续运营个人技术博客,记录工作与个人项目中遇到的真实问题,以及解决问题过程中的探索、实践和思考。

除了技术写作,我也在持续开发和维护自己的独立项目,探索新技术和新工具在实际场景中的应用。我始终相信,没有不值得去解决的问题,也没有不值得去学习的技术。

如果这篇文章对你有所帮助,欢迎浏览博客中的其他文章,也欢迎交流技术经验与想法。

关于我  ·  GitHub  ·  邮件联系