Open Closed

Client side error after update to 9.0.4 #8782


User avatar
0
rsg160 created
  • ABP Framework version: v9.0.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • The project was running properly on version 8.2.0. It was upgraded to version 9.0.4, and the following modifications were made:

1 -> <TargetFramework>net8.0</TargetFramework> updated to 9 2 -> The "abp update" command was run. 3 -> All NuGet packages were updated. 4 -> Replaced "UseStaticFiles" with "MapStaticAssets" The project compiles correctly and runs well locally. However, once deployed in the development branch, it breaks and shows messages in the browser console. The error occurs in all the web projects: (web/ portal & ids. Can you guys provide some advice on how to solve it?


11 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello rsg160,

    Can you run abp install-libs in the terminal and try again before deploying the solution? I suspect this step is not working properly when the abp update command is running.

  • User Avatar
    0
    rsg160 created

    Hi berkansasmaz, thanks for the response. I did that and still happening, in the log file I have this error :

    2025-02-12 13:09:16.863 -05:00 [INF] Bundling __bundles/LeptonX.Global.BAAE664F6DFC55537E6DAB94FBB1F4E1.js (49 files) 2025-02-12 13:09:16.870 -05:00 [INF] > Minified /libs/abp/core/abp.js (25271 bytes -> 10313 bytes) 2025-02-12 13:09:16.987 -05:00 [INF] > Minified /libs/jquery/jquery.js (296030 bytes -> 87931 bytes) 2025-02-12 13:09:16.991 -05:00 [INF] > Minified /libs/abp/jquery/abp.jquery.js (13489 bytes -> 5683 bytes) 2025-02-12 13:09:17.007 -05:00 [INF] > Minified /libs/jquery-validation/jquery.validate.js (54237 bytes -> 25346 bytes) 2025-02-12 13:09:17.011 -05:00 [INF] > Minified /libs/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js (19820 bytes -> 5883 bytes) 2025-02-12 13:09:17.016 -05:00 [INF] Executed action Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared) in 172.1224ms 2025-02-12 13:09:17.017 -05:00 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Controllers.ErrorController.Index (Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared)' 2025-02-12 13:09:17.017 -05:00 [ERR] An exception was thrown attempting to execute the error handler. Volo.Abp.AbpException: Could not find file '/libs/datatables.net/js/jquery.dataTables.js' at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileInfo(IBundlerContext context, String file) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetAndMinifyFileContent(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.GetFileContentConsideringMinification(IBundlerContext context, String fileName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundlerBase.Bundle(IBundlerContext context) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.<>c__DisplayClass17_0.<AddToBundleCache>b__0() at System.Collections.Generic.AbpDictionaryExtensions.<>c__DisplayClass7_02.<GetOrAdd>b__0(TKey k) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Collections.Generic.AbpDictionaryExtensions.GetOrAdd[TKey,TValue](ConcurrentDictionary2 dictionary, TKey key, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleCache.GetOrAdd(String bundleName, Func1 factory) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.AddToBundleCache(String bundleName, IBundler bundler, List1 bundleFiles) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetBundleFilesAsync(BundleConfigurationCollection bundles, String bundleName, IBundler bundler) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.BundleManager.GetScriptBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperScriptService.GetBundleFilesAsync(String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpTagHelperResourceService.ProcessAsync(ViewContext viewContext, TagHelper tagHelper, TagHelperContext context, TagHelperOutput output, List1 bundleItems, String bundleName) at Volo.Abp.AspNetCore.Mvc.UI.Bundling.TagHelpers.AbpBundleTagHelperService`2.ProcessAsync(TagHelperContext context, TagHelperOutput output) at Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperRunner.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello,

    Can you update abp.resourcemapping.js in the MyApp.Web project as follows and try again?

    module.exports = {
        aliases: {
        },
        mappings: {
            "@node_modules/datatables.net/js": "@libs/datatables.net/js/"
        }
    };
    
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share your packages.json file?

    Have npm packages been upgraded to 9.x?

  • User Avatar
    0
    rsg160 created

    { "version": "1.0.0", "name": "my-app", "private": true, "dependencies": { "@volo/abp.aspnetcore.mvc.ui.theme.leptonx": "~4.0.5", "@abp/aspnetcore.mvc.ui.theme.shared": "9.0.4", "@volo/cms-kit-pro.admin": "~9.0.4", "@abp/signalr": "~9.0.4", "@volo/account": "~9.0.4", "@volo/audit-logging": "~9.0.4", "@volo/identity": "~9.0.4", "@volo/language-management": "~9.0.4", "@abp/datatables.net": "~9.0.4"

    } }

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try deleting the yarn.lock file and re-running the yarn to restore packages?

    Then check the datatables.net folder under node_modules. See what files are in it.

  • User Avatar
    0
    rsg160 created

    I deleted the yarn.lock and runed again, but still happening , also I want to clarify this project is running fine un mi local environment, this error start when it is published to azure dev environment. Also modified abp.resourcemapping.js file and added the mapping section.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    this error start when it is published to azure dev environment.

    Ensure your wwwroot/libs folder is up to date in Azure.

    It has to be the same as your local. You can check it.

    Thanks

  • User Avatar
    0
    rsg160 created

    hi

    this error start when it is published to azure dev environment.

    Ensure your wwwroot/libs folder is up to date in Azure.

    It has to be the same as your local. You can check it.

    Thanks

    There is no wwwroot/libs in my released project. I assume it is embedded within some project dll.

  • User Avatar
    0
    rsg160 created

    It's working now , I applied all the the advices you guys provided also add to the project one bundle contributor which is decorated with

    [DependsOn(typeof(BootstrapScriptContributor))] [DependsOn(typeof(DatatablesNetBs5ScriptContributor))] [DependsOn(typeof(DatatablesNetScriptContributor))] [DependsOn(typeof(LeptonXGlobalScriptContributor))]

    Thanks

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Closing the issue. Feel free to re-open or create a new issue if you have further questions.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00