Moodle for mobile

Moodle app build

 
Picture of Arindam Ghosh
Moodle app build
 

Hi Everyone,

I am facing difficulties in building the app. The browser run works but when I try to build for android errors pop up but I followed the exact steps mentioned here,


https://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2


Can you guys please help! I noticed that during setting up gulp and others a lot of "deprecated" messages were coming up. I really really hope somebody will help!


Thanks and Regards,
Arindam

 
Average of ratings: -
Picture of behnaz ranjbar
Re: Moodle app build
 

hi,

could you show us a screenshot of those errors?

 
Average of ratings: -
Picture of Arindam Ghosh
Re: Moodle app build
 

Thanks for your response. Please find the errors below. 


Error: ./node_modules/electron-windows-notifications/src/tile-notification.js
Module not found: Error: Can't resolve '@nodert-win10/windows.data.xml.dom' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.data.xml.dom' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.data.xml.dom)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom]
 @ ./node_modules/electron-windows-notifications/src/tile-notification.js 1:12-57
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/toast-notification.js
Module not found: Error: Can't resolve '@nodert-win10/windows.data.xml.dom' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.data.xml.dom' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.data.xml.dom)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.data.xml.dom]
 @ ./node_modules/electron-windows-notifications/src/toast-notification.js 1:12-57
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/secondary-tile.js
Module not found: Error: Can't resolve '@nodert-win10/windows.foundation' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.foundation' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.foundation)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.foundation]
 @ ./node_modules/electron-windows-notifications/src/secondary-tile.js 34:31-74
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/tile-notification.js
Module not found: Error: Can't resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.ui.notifications)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
 @ ./node_modules/electron-windows-notifications/src/tile-notification.js 2:22-71
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/toast-notification.js
Module not found: Error: Can't resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.ui.notifications)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
 @ ./node_modules/electron-windows-notifications/src/toast-notification.js 2:22-71
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/tile-updater.js
Module not found: Error: Can't resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.ui.notifications)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
 @ ./node_modules/electron-windows-notifications/src/tile-updater.js 1:22-71
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/history.js
Module not found: Error: Can't resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.ui.notifications' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.ui.notifications)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.notifications]
 @ ./node_modules/electron-windows-notifications/src/history.js 1:22-71
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts,./node_modules/electron-windows-notifications/src/secondary-tile.js
Module not found: Error: Can't resolve '@nodert-win10/windows.ui.startscreen' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
resolve '@nodert-win10/windows.ui.startscreen' in '/home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/src'
  Parsed request is a module
  using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: /home/subrata/moodlemobiledirectory/node_modules/electron-windows-notifications/package.json (relative path: ./src)
    resolve as module
      looking for modules in /home/subrata/moodlemobiledirectory/node_modules
        using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
        after using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules)
          using description file: /home/subrata/moodlemobiledirectory/package.json (relative path: ./node_modules/@nodert-win10/windows.ui.startscreen)
            no extension
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen doesn't exist
            .ts
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.ts doesn't exist
            .js
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.js doesn't exist
            .json
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.json doesn't exist
            as directory
              /home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen doesn't exist
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.ts]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.js]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen.json]
[/home/subrata/moodlemobiledirectory/node_modules/@nodert-win10/windows.ui.startscreen]
 @ ./node_modules/electron-windows-notifications/src/secondary-tile.js 33:33-80
 @ ./node_modules/electron-windows-notifications/src/index.js
 @ ./src/core/emulator/providers/local-notifications.ts
 @ ./src/core/emulator/emulator.module.ts
 @ ./src/app/app.module.ts
 @ ./src/app/main.ts
    at new BuildError (/home/subrata/moodlemobiledirectory/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at callback (/home/subrata/moodlemobiledirectory/node_modules/@ionic/app-scripts/dist/webpack.js:121:28)
    at emitRecords.err (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/Compiler.js:269:13)
    at Compiler.emitRecords (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/Compiler.js:375:38)
    at emitAssets.err (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/Compiler.js:262:10)
    at applyPluginsAsyncSeries1.err (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/Compiler.js:368:12)
    at next (/home/subrata/moodlemobiledirectory/node_modules/tapable/lib/Tapable.js:218:11)
    at Compiler.compiler.plugin (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/performance/SizeLimitsPlugin.js:99:4)
    at Compiler.applyPluginsAsyncSeries1 (/home/subrata/moodlemobiledirectory/node_modules/tapable/lib/Tapable.js:222:13)
    at Compiler.afterEmit (/home/subrata/moodlemobiledirectory/node_modules/webpack/lib/Compiler.js:365:9)

 
Average of ratings: -
Picture of behnaz ranjbar
Re: Moodle app build
 

have you examined these commands?

npm install -g npm
npm install -g node-gyp
npm install @nodert-win10/windows.data.xml.dom

 
Average of ratings: -
Picture of Dani Palou
Re: Moodle app build
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

for some reason, npm installs some Windows-only packages in Mac and Linux, when it shouldn't. Please open the folder "node_modules" and remove these folders:

electron-windows-notifications

electron-builder-squirrel-windows

We're still looking for a permanent solution, for now this is the only way to go.

Kind regards,

Dani

 
Average of ratings: -