Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3885

Unable to run on ios nor android with the last 3.9.5 version

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.5
    • Fix Version/s: None
    • Component/s: Android, Cordova, Ionic, iOS
    • Labels:
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      I'm trying to use the last 3.9.5 version but I'm unable to build it.

      This is what I do:

      • get a fresh copy of the code
      • `npm install`
      • `npm run build` — seems to work ok
      • `npm dev:android`— fails becouse of the livereload so I try without the flag:
      • `ionic cordova run android`: throws an error just after saying BUILD SUCCESSFULL

       

      BUILD SUCCESSFUL in 15s
       42 actionable tasks: 42 executed
       Built the following apk(s):
       /Users/......./platforms/android/app/build/outputs/apk/debug/app-debug.apk
       [ERROR] An error occurred while running subprocess cordova.
      

       

      • And if I try `npm run prod:android`, I also get a BUILD SUCCESSFULL but the this error:

       

      Error: Cannot find module './lib/updates'. 
      Require stack:   
      - /Users/...../node_modules/@ionic/cli/index.js. 
      - /Users/...../node_modules/@ionic/cli/bin/ionic%   
      

       

      I also tried to build for iOS and get this "Cannot find module './lib/updates'" error

       

      Any idea on why I'm getting this error?

       

      Thanks

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            asunyer Albert Sunyer
            Participants:
            Component watchers:
            Juan Leyva, Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: