Open Closed

AbpException: Could not find the bundle file '/libs/flag-icon-css/css/flag-icons.min.css' for the bundle 'Blazor.LeptonXTheme.Global' #4917


User avatar
0
brauerj@gc.adventist.org created
  • ABP Framework version: Upgrade from v7.0.3 to v7.1.1
  • UI type: Blazor Server

After upgrade I receive the error message:

AbpException: Could not find the bundle file '/libs/flag-icon-css/css/flag-icons.min.css' for the bundle 'Blazor.LeptonXTheme.Global'! Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List<BundleTagHelperItem> bundleItems, string bundleName) Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService<TTagHelper, TService>.ProcessAsync(TagHelperContext context, TagHelperOutput output) Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.<RunAsync>g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, int i, int count) GcIprs.Main.Blazor.Pages.Pages__Host.<ExecuteAsync>b__16_0() in _Host.cshtml + <abp-style-bundle name="@BlazorLeptonXThemeBundles.Styles.Global" /> Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() GcIprs.Main.Blazor.Pages.Pages__Host.ExecuteAsync() in _Host.cshtml + <html lang="@CultureInfo.CurrentCulture.Name" dir="@rtl"> Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageCoreAsync(IRazorPage page, ViewContext context) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderPageAsync(IRazorPage page, ViewContext context, bool invokeViewStarts) Microsoft.AspNetCore.Mvc.Razor.RazorView.RenderAsync(ViewContext context)


5 Answer(s)
  • User Avatar
    0
    brauerj@gc.adventist.org created

    doing "yarn add flag-icons" and changing abp.resourcemapping.js to the following and running abp install-libs fixes it but why is this needed?

    module.exports = { aliases: { "@node_modules": "./node_modules", "@libs": "./wwwroot/libs" }, clean: [ "@libs", "!@libs/**/foo.txt" ], mappings: { "@node_modules/flag-icon-css/css/*.min.css": "@libs/flag-icon-css/css/", } };

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can you share the package.json file content?

  • User Avatar
    0
    brauerj@gc.adventist.org created

    This is how my package.json looks after running abp update and install-libs still receiving the error (without my fix):

    { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~2.1.0", "@volo/account": "^7.1.1", "@volo/aspnetcore.components.server.leptonxtheme": "~2.1.0", "@volo/cms-kit-pro.admin": "^7.1.1", "@volo/language-management": "^7.1.1", //"flag-icons": "^6.6.6" } }

  • User Avatar
    0
    brauerj@gc.adventist.org created

    running abp update this morning gives the following but still doesn't solve the problem:

    { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~2.1.0", "@volo/account": "~7.2.0", "@volo/aspnetcore.components.server.leptonxtheme": "~2.1.0", "@volo/cms-kit-pro.admin": "~7.2.0", "@volo/language-management": "~7.2.0" } }

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Please change to:

    {
        "version": "1.0.0",
        "name": "my-app",
        "private": true,
        "dependencies": {
        "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~2.1.0",
        "@volo/account": "~7.1.1",
        "@volo/aspnetcore.components.server.leptonxtheme": "~2.1.0",
        "@volo/cms-kit-pro.admin": "~7.1.1",
        "@volo/language-management": "~7.1.1"
    }
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11