Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

if loading chunk failed it will not work anymore #530

Open
ionitron-bot bot opened this issue Nov 29, 2018 · 1 comment
Open

if loading chunk failed it will not work anymore #530

ionitron-bot bot opened this issue Nov 29, 2018 · 1 comment
Labels

Comments

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 29, 2018

Original issue by @alaa-alshamy on 2017-12-13T07:33:50Z

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[x] 3.x
[ ] 4.x

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:

if loading any chunk when using lazy loading failed for any reason (ex: lost connection for seconds) the app will not try to load it again and the page or modal will not open till the user refresh the app

Expected behavior:

the app should try to load it again

Steps to reproduce:

1- run project with lazy loading feature
2- make ur device offline
3- click on new page or modal to open (the app will try to load the chunk of that page or modal)
4- back online
5- click again on the page or modal to open (it will not open anymore)

Related code:

insert short code snippets here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages: 

    @ionic/cli-utils  : 1.19.0
    ionic (Ionic CLI) : 3.19.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.3.0 ios 4.5.3
    Ionic Framework    : ionic-angular 3.9.2

System:

    Node : v6.12.2
    npm  : 3.10.10 
    OS   : Linux 4.4

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : legacy
@ersaurabh101
Copy link

I have done the above fix but it is still not working for me. On one machine it is still giving this error of loading chunk failed. I have done everything i could but to not help.

Please tell me, how can i run my app on my client's PC, since last 8 hours i am trying :(
I am using lazy load , Ionic 3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant