简体   繁体   English

使用Yarn部署进行构建时出错-Angular应用程序

[英]Error while building with Yarn Deployment - Angular Application

While building with Yarn in VSTS I get the error " could not find a copy of typescript to link in D:\\c\\2\\b\\node_modules\\rxjs-tslint\\node_modules " 在VSTS中使用Yarn进行构建时,出现错误“ 找不到要在D:\\ c \\ 2 \\ b \\ node_modules \\ rxjs-tslint \\ node_modules中链接的打字稿副本

Error: \\hostedtoolcache\\windows\\yarn\\1.12.3\\x64\\yarn-v1.12.3\\bin\\yarn.cmd failed with return code: 1 错误: \\ hostedtoolcache \\ windows \\ yarn \\ 1.12.3 \\ x64 \\ yarn-v1.12.3 \\ bin \\ yarn.cmd失败,返回码:1

Looks like dependency issue. 看起来像依赖问题。

I don't know exactly what's your dependency structure, but the error actually gives the clue. 我不确切知道您的依赖关系结构是什么,但是错误实际上提供了线索。

Same happened to me just ago - when I upgraded the rxjs-tslint package from v0.1.5 to v0.1.6 , as well as other packages. 刚才我也遇到了同样的事情-当我将rxjs-tslint软件包以及其他软件包从v0.1.5升级v0.1.6时

Seems like something is wrong with rxjs-lint v0.1.6 , better edit your package.json to use v0.1.5 as a workaround . rxjs-lint v0.1.6似乎有问题,最好编辑package.json以使用v0.1.5作为解决方法

That trick just worked on 3 different projects :) 这个技巧只适用于3个不同的项目:)

There is defenetly an issue with Yarn with the eslint version. eslint版本的Yarn毫无疑问是一个问题。

https://github.com/yarnpkg/yarn/issues/6285 https://github.com/yarnpkg/yarn/issues/6285

Had to remove that from --prod version as a work around and have it added to dev only dependency. 不得不从--prod版本中删除它,并将其添加到仅开发人员依赖项中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM