Ionic application ERROR Error: Uncaught (in promise): ChunkLoadError: Loading chunk

Hello,

I have an Ionic TypeScript application which was working for a long time in browsers and devices.

ionic info:

Ionic:

   Ionic CLI                     : 6.13.1 (C:\Users\User\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.6.0
   @angular-devkit/build-angular : 0.1101.4
   @angular-devkit/schematics    : 11.1.4
   @angular/cli                  : 11.1.4
   @ionic/angular-toolkit        : 3.1.0

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : android 9.0.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 7 other plugins)

Utility:

   cordova-res : 0.15.3
   native-run  : not installed

System:

   Android SDK Tools : 26.1.1 (C:\Users\User\Android-SDK)
   NodeJS            : v14.15.1 (C:\Program Files\nodejs\node.exe)
   npm               : 6.14.8
   OS                : Windows 10

Application works in browser, but .apk fails on Android device, even clear browsing data, application load shows blank screen on device and error.

chrome://inspect#devices log:

Uncaught SyntaxError: Unexpected token {

enter image description here

and:

ERROR Error: Uncaught (in promise): ChunkLoadError: Loading chunk
chat-chat-module failed.

(missing: http://localhost/chat-chat-module.js)

ChunkLoadError: Loading chunk chat-chat-module failed.

enter image description here

I’ve found some related topics like Angular 2 Error: Loading chunk failed many times and Ionic 3. Unexpected token < but still got the error

Any advice would be helpful