Closed brauerj-gc closed 1 year ago
also running abp update I get:
Could not parse package "Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" version v2.1.-. Skipped. Could not parse package "Volo.Abp.AspNetCore.Components.Server.LeptonXTheme" version v2.1.-. Skipped.
[3/4] Linking dependencies... warning "@volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/bootstrap > bootstrap@5.2.3" has unmet peer dependency "@popperjs/core@^2.11.6". warning "@volo/abp.aspnetcore.mvc.ui.theme.leptonx > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/jquery-validation-unobtrusive > @abp/jquery-validation > jquery-validation@1.19.5" has unmet peer dependency "jquery@^1.7 || ^2.0 || ^3.1".
I get the same thing when I run abp new Acme.BookStore -u blazor-server
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/", } };
Hi, what is your LeptonX Theme version?
flag-icon-css
is renamed to flag-icon
and the @abp/flag-icon-css doesn't have abp.resourcemapping.js for install-libs task. If you force to continue with @abp/flag-icon-css you need to create abp.resourcemapping.js manually at YouProjectRoot/node_modules/@abp/flag-icon-css with this content:
module.exports = {
mappings: {
"@node_modules/flag-icon-css/css/*": "@libs/flag-icon-css/css",
"@node_modules/flag-icon-css/flags/1x1/*": "@libs/flag-icon-css/flags/1x1"
}
}
But I didn’t make any changes. I just ran the template as is! Why would I have this problem?
Get Outlook for iOShttps://aka.ms/o0ukef
From: Mostafa F @.> Sent: Wednesday, April 19, 2023 4:48:05 AM To: abpframework/abp @.> Cc: Brauer, Jonathan @.>; Author @.> Subject: [EXTERNAL] Re: [abpframework/abp] v7.1.1 gives AbpException: Could not find the bundle file '/libs/flag-icon-css/css/flag-icons.min.css' for the bundle 'Blazor.LeptonXTheme.Global'! (Issue #16303)
flag-icon-css is renamed to flag-icon and the @abp/flag-icon-css doesn't have abp.resourcemapping.js for install-libs task. If you force to continue with @abp/flag-icon-css you need to create abp.resourcemapping.js manually at @.***/flag-icon-css with this content:
module.exports = { mappings: { @._modules/flag-icon-css/css/": **@./flag-icon-css/css", @._modules/flag-icon-css/flags/1x1/*": @.***/flag-icon-css/flags/1x1" } }
— Reply to this email directly, view it on GitHubhttps://github.com/abpframework/abp/issues/16303#issuecomment-1514363120, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6FB2HXPBTHDUNBTRMXZ57DXB6RELANCNFSM6AAAAAAXDGOW2U. You are receiving this because you authored the thread.Message ID: @.***>
here is my package.json this morning still having 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" } }
So as a new ABP user that can't generate a working startup project, what is the recommended course of action? Downgrade to 7.0.3?
So as a new ABP user that can't generate a working startup project, what is the recommended course of action? Downgrade to 7.0.3?
If you are creating a new startup template, you will not get any problems. Actually, this is also valid for older versions, the only problem is in v7.1.1. BTW, we have fixed the problem and you will not be effected by new versions.
If you are creating a new startup template, you will not get any problems. Actually, this is also valid for older versions, the only problem is in v7.1.1. BTW, we have fixed the problem and you will not be effected by new versions.
Unfortunately, that doesn't appear to be the case. I was experiencing the issue when creating a new startup template via v7.1.1 (how I found this post). I figured it was fixed in 7.2.0-rc.2 so I just tried the following:
abp suite remove abp cli remove dotnet tool install -g Volo.Abp.Cli --version 7.2.0-rc.2 abp suite install --version 7.2.0-rc.2 abp suite
Result: ABP CLI 7.2.0-rc.2 Starting Suite v7.2.0-rc.2 ... Opening http://localhost:3000 Press Ctrl+C to shut down. [13:49:13 ERR] Connection id "0HMQ5NN1KM71T", Request id "0HMQ5NN1KM71T:00000001": An unhandled exception was thrown by the application. Volo.Abp.AbpException: Could not find the bundle file '/libs/abp/core/abp.css' for the bundle 'Lepton.Global'!
So now I'm experiencing a similar issue when launching abp suite, before I even create a project. I will try 7.0.3 next.
abp suite remove abp cli remove dotnet tool install -g Volo.Abp.Cli --version 7.0.3 abp suite install --version 7.0.3 abp suite
Abp suite works now, but I have the same subject issue when attempting to run the project. I'm not sure how to proceed. Am I failing to remove something before generating the new project solution?
abp suite remove abp cli remove dotnet tool install -g Volo.Abp.Cli --version 7.0.3 abp suite install --version 7.0.3 abp suite
Abp suite works now, but I have the same subject issue when attempting to run the project. I'm not sure how to proceed. Am I failing to remove something before generating the new project solution?
Are you creating a new project and if so in which version?
Yes, all attempts are completely new projects, Blazor Server, Lepton-X. I've tried 7.0.3, 7.1.1, and 7.2.0-rc.2. Essentially doing the OP's reproduction steps.
Glad I'm not the only one having problems. I've given up for now and just use my work around via abp.resourcemapping.js
I can confirm 7.2.0-rc.2 does work. I never actually generated a project under 7.2.0-rc.2 because I had been using suite to do so and suite is broken in 7.2.0-rc.2. When I generated via CLI, everything worked as expected. I will create a new issue for the suite problem if it isn't identified already.
I can confirm 7.2.0-rc.2 does work. I never actually generated a project under 7.2.0-rc.2 because I had been using suite to do so and suite is broken in 7.2.0-rc.2. When I generated via CLI, everything worked as expected. I will create a new issue for the suite problem if it isn't identified already.
Thanks @justinb9909 🙏
Is there an existing issue for this?
Description
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 bundleItems, string bundleName)
Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService<TTagHelper, TService>.ProcessAsync(TagHelperContext context, TagHelperOutput output)
Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.g__Awaited|0_0(Task task, TagHelperExecutionContext executionContext, int i, int count)
GcIprs.Main.Blazor.Pages.PagesHost.b 16_0() in _Host.cshtml
+
Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext.SetOutputContentAsync() GcIprs.Main.Blazor.Pages.Pages__Host.ExecuteAsync() in _Host.cshtml +
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) ### Reproduction Steps abp new Acme.BookStore -t app-pro -u blazor-server Then run the app ### Expected behavior It should run ### Actual behavior 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