Closed 274188A closed 3 years ago
still getting same error after removing the offending tags. cleaned browser cache etc.
Did you try dotnet clean & dotnet build
.blazor
project
yes of course
ok, found the problem. Only works if the preview
version is used.
The 0.9.3
version fails
The 0.9.3-preview6
works
Note that even running ABP new myproj -ui blazor
generates 0.9.3-preview6
(why preview on brand new proj?)
So in summary my problem is fix although why does it not work on the release version (ie 0.9.3)?
@274188A you need to follow the migration guide https://blazorise.com/news/release-notes/093/#migration-
<ModalBackdrop>
is obsolete and should be removed from all razor files.
@stsrki Yes done that, see my previous comment. Problem is that preview 6 is being used for new projects using latest CLI
Follow steps below to reproduce (using CLI and Blazor UI)
ok so to Reproduce: use the CLI
ABP new testproject -ui blazor
open up the Blazor project and inspect the project xml.
notice the version nbr for Blazorise
also note that this version is not the latest:
I suspect something is going amiss in the release pipeline
now if one bumps up to v0.9.3 you will get the following:
[All reproducible using a brand new project with the CLI]
Is the same issue reported here: https://github.com/abpframework/abp/issues/7946
@totpero - no I believe it is a different issue. CC: @stsrki
The ABP CLI v 4.2.2 generates a brand new blazor project which has the following refs:
<PackageReference Include="Blazorise.Bootstrap" Version="0.9.3-preview6" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="0.9.3-preview6" />
If you attempt to change the refs to use the so called "stable" version (9.3.1
) you will see the error pop up as described above.
I simply can't describe it any simpler than this.
Obviously the builds for 9.3.1 still have refs to the Modalbackdrop
and so since not allowed - the exception is thrown at run-time.
How the CLI generates the PackageReference? I replaced all the references in .csproj
files to 0.9.3 final.
@stsrki The first preview release will be using the 0.9.3 final packages. When a user creates a new project using the CLI or suite, projects are created with preview packages. I think they are using templates in the rel-
branches.
i'm confused as I'm using the CLI tool with 4.2.2 - it produces refs with 0.9.3-preview6
- is it my environment somehow?
Nothing is wrong with your environment. See the template that the CLI and suite use. https://github.com/abpframework/abp/blob/rel-4.2/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Blazor/MyCompanyName.MyProjectName.Blazor.csproj
I think the problem is Blazorise 0.9.3-final is not backward compatible with 0.9.3-preview6. @stsrki
i thought i was going mad - ok good to know!
@ilkayilknur Yes, that is the case. ModalBackdrop was removed sometimes around preview9 I think.
ok - still, if i remove all the backdrops, upgrade to 0.9.3.1 i still have the problem. i even cleaned out .vs file, obj, bin
Yes, That's because ABP uses the ModalBackdrop
internally.
right, so i should wait until that goes away ie 4.2.3?
Yes, that's the safest option, I think.
thanks for getting to the bottom of this @ilkayilknur
reopening until resolved - similar reported in #8149
I don't think that we could take extra action on this issue. It's best to wait for the new preview version. I'm closing the issue.
Version: 4.2.2 UI: Blazor
Blazor Project Refs:
Error