问题:I使用DevExpress v.21.1创建了一个XAF Blazor项目,其中asp.net核心(blazor)的仪表板特性不可用。稍后,在DevExpress v.21.2中添加了仪表板特性。在将我的项目更新到v21.2之后,我试图按照https://docs.devexpress.com/eXpressAppFramework/117449/analytics/dashboards-module?p=net5中提到的步骤在我的项目中添加仪表板特性,但是当我运行项目并尝试创建/查看仪表板时,它会显示以下异常。
[2022-01-14T17:39:16.251Z] Error: Microsoft.JSInterop.JSException: E0024 - DevExtreme bundle already included. See:
http://js.devexpress.com/error/21_2/E0024
Error: E0024 - DevExtreme bundle already included. See:
http://js.devexpress.com/error/21_2/E0024
at d (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:145831)
at Object.Error (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:145347)
at Object.36991 (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:29970)
at n (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:33:1708)
at Object.85357 (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:34466)
at n (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:33:1708)
at Object.50779 (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:36061)
at n (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:33:1708)
at Object.64178 (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:9:37600)
at n (https://localhost:44318/_content/DevExpress.Blazor.Dashboard/dx.all.js?v=82cd2362f09e4566fecfcac9c12b89da:33:1708)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at DevExpress.DashboardBlazor.Native.DashboardJSInteropProxy.ImportScripts(Nullable`1 scriptsLoadingEvent)
at DevExpress.DashboardBlazor.DxDashboard.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)发布于 2022-01-15 08:38:25
经过几个小时的研究,我找到了解决办法。
在文件_Host.cshtml中,dx.all.js被包括在内,这造成了冲突。我删除了它,之后一切都进行得很好。
https://stackoverflow.com/questions/70714672
复制相似问题