Moodle app build error

Moodle app build error

by ODUCATE E -
Number of replies: 0

Hi everyone,

I am trying to build a custom moodle mobile app. But unfortunately, it is not starting in the browser. I am using 'npx gulp watch' command in a cmd window and 'npx ionic-app-scripts serve -b --devapp --address=0.0.0.0' in another cmd window. 

However, when I run this command 'npx ionic-app-scripts serve -b --devapp --address=0.0.0.0'. I get an error like this (also attached the screenshot):

C:\uew>npx ionic-app-scripts serve -b --devapp --address=0.0.0.0

[13:05:34]  ionic-app-scripts 3.2.3
[13:05:34]  watch started ...
[13:05:34]  build dev started ...
[13:05:34]  clean started ...
[13:05:34]  clean finished in 3 ms
[13:05:34]  copy started ...
[13:05:36]  deeplinks started ...
[13:05:39]  deeplinks finished in 2.85 s
[13:05:39]  transpile started ...
[13:06:15]  typescript: C:/uew/src/providers/utils/iframe.ts, line: 30
            Module '"C:/uew/node_modules/cordova-plugin-wkuserscript/types/index"' has no exported member
            'WKUserScriptInjectionTime'.
      L29:  private domUtils: CoreDomUtilsProvider, private platform: Platform, private appProvider: CoreAppProvider,
      L30:  private translate

: TranslateService, private network: Network, private zone: NgZone, private config: Config,
      L31:  private contentLinksHelper: CoreContentLinksHelperProvider) {
[13:06:16]  dev server running: http://localhost:8100/
[13:06:16]  copy finished in 41.11 s
(node:7696) UnhandledPromiseRejectionWarning: Error: A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: C:\uew\src\**\*.(ts|html|s(c|a)ss)
    at new BuildError (C:\uew\node_modules\@ionic\app-scripts\dist\util\errors.js:16:28)
    at Timeout._onTimeout (C:\uew\node_modules\@ionic\app-scripts\dist\watch.js:71:20)
    at listOnTimeout (internal/timers.js:535:17)
    at processTimers (internal/timers.js:479:7)
(node:7696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:7696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.


Is there something wrong with my development environment? 

Kindly, help and suggest what I am doing wrong?

Attachment error.png
Average of ratings: -