简体   繁体   English

WebStatus 无法编译:“cdnjs”提供程序无法解析“jquery@3.4.1”库

[英]WebStatus wont compile: The "jquery@3.4.1" library could not be resolved by the "cdnjs" provider

I have the eShopOnContainers solution here: https://github.com/dotnet-architecture/eShopOnContainers .我在这里有 eShopOnContainers 解决方案: https://github.com/dotnet-architecture/eShopOnContainers I have been actively working on a variation of it for the last few years.在过去的几年里,我一直在积极研究它的变体。 I attempted to compile it this morning and the WebStatus project causes this error:我今天早上试图编译它,但 WebStatus 项目导致了这个错误:

libman.json(0,0): Error LIB002: The "jquery@3.4.1" library could not be resolved by the "cdnjs" provider

I have found this: https://github.com/aspnet/LibraryManager/issues/685 and this: https://issuemode.com/issues/cdnjs/cdnjs/94570425 (updated yesterday)我发现了这个: https://github.com/aspnet/LibraryManager/issues/685和这个: https://issuemode.com/issues/cdnjs/cdnjs/94570425 (昨天更新)

So far I have tried what is suggested in the articles:到目前为止,我已经尝试了文章中的建议:

dotnet tool install -g Microsoft.Web.LibraryManager.Cli (installs version 2.1.75) libman cache clean libman restore dotnet tool install -g Microsoft.Web.LibraryManager.Cli(安装版本 2.1.75) libman cache clean libman restore

Is there anything else I can try?还有什么我可以尝试的吗? My Libman.json looks like this:我的 Libman.json 看起来像这样:

{
  "version": "1.0",
  "defaultProvider": "cdnjs",
  "libraries": [
    {
      "library": "jquery@3.4.1",
      "destination": "wwwroot/lib/jquery/"
    },
    {
      "provider": "unpkg",
      "library": "bootstrap@4.1.3",
      "files": [
        "dist/css/bootstrap.css",
        "dist/css/bootstrap.css.map",
        "dist/css/bootstrap.min.css",
        "dist/css/bootstrap.min.css.map",
        "dist/js/bootstrap.js",
        "dist/js/bootstrap.min.js"
      ],
      "destination": "wwwroot/lib/bootstrap/"
    }
  ]
}

Try this:尝试这个:

-Right click libman.json -右键单击 libman.json

  • Disable Client-Side libraries on build在构建时禁用客户端库

Build the project构建项目

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

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