简体   繁体   中英

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 . 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:

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)

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

Is there anything else I can try? My Libman.json looks like this:

{
  "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

  • Disable Client-Side libraries on build

Build the project

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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