Change of Hosting

Viewing 22 posts - 31 through 52 (of 52 total)
  • Author
    Posts
  • #12612

    admin
    Member
    This reply has been marked as private.
    #12622

    İleri Eğitim
    Participant
    These are the warnings I got when I used your source folder to build apk: C:\Ionic\projectname>ionic cordova build --release android Running app-scripts build: --platform android --target cordova [21:08:23]  build dev started ... [21:08:23]  clean started ... [21:08:23]  clean finished in 4 ms [21:08:23]  copy started ... [21:08:23]  transpile started ... [21:08:35]  typescript: C:/Ionic/projectname/src/app/app.component.ts, line: 52 Property 'then' does not exist on type 'Observable<string>'.   L52:                      imgcacheService.initImgCache().then(() => { L53:                        this.rootPage = TabsPage;   [21:08:35]  typescript: C:/Ionic/projectname/src/app/app.component.ts, line: 62 Property 'then' does not exist on type 'Observable<string>'.   L61:  let nav = this.app.getRootNav(); L62:  imgcacheService.initImgCache().then(() => { L63:    nav.setRoot(this.rootPage);   [21:08:35]  typescript: C:/Ionic/projectname/src/directives/lazy-load.directive.ts, line: 44 Property 'cacheImg' does not exist on type 'ImgcacheService'.   L43:  // cache img and set the src to the img L44:  this.imgCacheService.cacheImg(this.src).then((value) => { L45:    if(value){   [21:08:35]  typescript: C:/Ionic/projectname/src/pages/profile/profile.ts, line: 724 Supplied parameters do not match any signature of call target.   L723:      this.storage.clear(); L724:      this.auth.logout();   Error: Failed to transpile program at new BuildError (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28) at C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:137:20 at new Promise (<anonymous>) at transpileWorker (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:103:12) at Object.transpile (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:61:12) at buildProject (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\build.js:97:78) at C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\build.js:47:16 at <anonymous> [21:08:35]  copy finished in 12.53 s  
    #12640

    admin
    Member
    Please try running this command in your ionic project folder :   npm install [email protected]
    #12824

    İleri Eğitim
    Participant
    The problem remains although I used your source folder to build the apk. Please have a look at this. Although not exactly the same, it appears to be a simiar cache problem. Short description of the problem: Ionic serve/livereload displays old content after refreshing. When I make changes to my app, the build completes and browser refreshes, then I see old content. Sometimes the changes do not apply, and sometimes I see an old page that I already changed multiple times.   What I do to resolve this is restart ionic serve or run npm run build and refresh the page manually. Clearing browser cache and refreshing page solves this issue some times, but not all the time. So I don't think it's a browser cache issue.   What behavior are you expecting? When the browser refreshes after a new build, it should display new updates.   Steps to reproduce: This issue is really random.   Create new project Run ionic serve or ionic run -l Keep making changes to your app Eventually the problem will occur the link of thread: https://github.com/ionic-team/ionic-app-scripts/issues/1432
    #12874

    İleri Eğitim
    Participant
    Please watch the video: https://drive.google.com/file/d/10o5nyGgQz_IKr-dGsndv3qe1NroOqx1_/view?usp=sharing This user actually has 16 courses but it displays 9 (that's the old content). Some courses show but some others don't. The cache does not clear itself and it gets mixed up. When you log out and try to open one of the taken courses of the user, it tries to open it up like a taken course.
    #12886

    admin
    Member
    You are right . Please provide me some time to check this out ,
    #12925

    admin
    Member
    Please add this line in your src/pages/profile/profile.ts : this.config.updateComponents('profile',0); http://prntscr.com/jy01nq
    #12955

    İleri Eğitim
    Participant
    I added the code and got an error: C:\Ionic\projectname>ionic cordova build --release android Running app-scripts build: --platform android --target cordova [21:06:49]  build dev started ... [21:06:49]  clean started ... [21:06:49]  clean finished in 2 ms [21:06:49]  copy started ... [21:06:49]  transpile started ... [21:06:53]  typescript: C:/Ionic/projectname/src/pages/profile/profile.ts, line: 113 Invalid character.   L112:    ngOnInit(){ L113:        this.config.updateComponents(‘profile’,0); L114:  this.filterargs = {type:'number'};   [21:06:53]  typescript: C:/Ionic/projectname/src/pages/profile/profile.ts, line: 113 Invalid character.   L112:    ngOnInit(){ L113:        this.config.updateComponents(‘profile’,0); L114:  this.filterargs = {type:'number'};   [21:06:53]  typescript: C:/Ionic/projectname/src/pages/profile/profile.ts, line: 113 Supplied parameters do not match any signature of call target.   L112:    ngOnInit(){ L113:        this.config.updateComponents(‘profile’,0); L114:  this.filterargs = {type:'number'};   [21:06:53]  typescript: C:/Ionic/projectname/src/pages/profile/profile.ts, line: 113 Cannot find name 'profile'. Did you mean the instance member 'this.profile'?   L112:    ngOnInit(){ L113:        this.config.updateComponents(‘profile’,0); L114:  this.filterargs = {type:'number'};   Error: Failed to transpile program at new BuildError (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28) at C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:137:20 at new Promise (<anonymous>) at transpileWorker (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:103:12) at Object.transpile (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\transpile.js:61:12) at buildProject (C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\build.js:97:78) at C:\Ionic\projectname\node_modules\@ionic\app-scripts\dist\build.js:47:16 at <anonymous> [21:06:53]  copy finished in 4.04 s
    #12966

    İleri Eğitim
    Participant
    I managed to resolve the above problem. I produced the apk but the result is disappointing. I will share the video soon.  
    #13055

    admin
    Member
    Please share exactly what issue you are facing in your generated apk file
    #13061

    İleri Eğitim
    Participant
    This reply has been marked as private.
    #13107

    İleri Eğitim
    Participant
    This reply has been marked as private.
    #13123

    admin
    Member
    CAn you please share your current src folder with us to check why its happening at your end ?
    #13129

    İleri Eğitim
    Participant
    This reply has been marked as private.
    #13171

    admin
    Member
    Ok I checked it .App code is fine .It is something with the api itself  . It is showing courses that are finished by the user ,it should not show such courses . I have checked this on my own wplrs.com server but could not replicate it .   Something is  wrong with the data processing on your server.Some times it shows old values while api call is made . I guess it might be due to server's internal caching .CAn you please check if there is some kind of internal object caching or opcaching is enabled on your server .
    #13193

    İleri Eğitim
    Participant
    This reply has been marked as private.
    #13222

    İleri Eğitim
    Participant
    Here is the exact definition and solution to my problem. https://stackoverflow.com/questions/28676631/is-it-possible-to-clear-the-view-cache-in-ionic But I couldn't figure out what I exactly have to do. Will you please have look at the thread and guide me?  
    #13253

    admin
    Member
    This reply has been marked as private.
    #13345

    İleri Eğitim
    Participant
    This reply has been marked as private.
    #13364

    admin
    Member
    This reply has been marked as private.
    #13369

    İleri Eğitim
    Participant
    Yesterday I updated to wplms 3.6 and today everything seems to work fine.
    #13401

    admin
    Member
    That is great . While checking I could see that there is some internal caching in your site  . So can we close this topic .
Viewing 22 posts - 31 through 52 (of 52 total)
  • The forum ‘[DEPRECATED] Ionic App Support’ is closed to new topics and replies.
Copyright VibeThemes.