unable to start app

This topic contains 2 replies, has 2 voices, and was last updated by  jnzgroup 2 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18616

    jnzgroup
    Participant

    Hi,

    I’ve purchaed both the WPLMS and APP, unable to run ‘ionic serve’ after ‘npm install’

    missing files:

    – ionic.config

    – tsconfig.json

    AS WELL as the bottom error: (running Ionic 4)

    $ ionic serve

    > ionic-app-scripts serve –address 0.0.0.0 –port 8100 –livereload-port 35729 –dev-logger-port 53703 –nobrowser

    [app-scripts] [11:34:11]  ionic-app-scripts 3.1.10

    [app-scripts] [11:34:11]  watch started …

    [app-scripts] [11:34:11]  build dev started …

    [app-scripts] [11:34:11]  typescript error

    [app-scripts]             No inputs were found in config file ‘C:\Users\User\Documents\WordPress WITH

    [app-scripts]             APP\app_package\ionic_src\tsconfig.json’. Specified ‘include’ paths were ‘[“src/**/*.ts”]’ and ‘exclude’

    [app-scripts]             paths were ‘[“node_modules”]’.

    [app-scripts] [11:34:11]  ionic-app-script task: “serve”

    [app-scripts] [11:34:11]  TypeError: Cannot read property ‘replace’ of null

    [app-scripts] TypeError: Cannot read property ‘replace’ of null

    [app-scripts]     at Object.escapeHtml (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\util\helpers.js:253:10)

    [app-scripts]     at generateCodeBlock (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:187:77)

    [app-scripts]     at generateDiagnosticHtml (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:179:12)

    [app-scripts]     at Array.map (<anonymous>)

    [app-scripts]     at Object.printDiagnostics (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:15:39)

    [app-scripts]     at getTsConfig (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\transpile.js:322:34)

    [app-scripts]     at Object.<anonymous> (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\transpile.js:298:46)

    [app-scripts]     at step (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\transpile.js:32:23)

    [app-scripts]     at Object.next (C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\transpile.js:13:53)

    [app-scripts]     at C:\Users\User\Documents\WordPress WITH APP\app_package\ionic_src\node_modules\@ionic\app-scripts\dist\transpile.js:7:71

     

    [ERROR] ionic-app-scripts has unexpectedly closed (exit code 1).

     

    The Ionic CLI will exit. Please check any output above for error details.

    #18653

    Alex
    Keymaster

    It looks like you have installed ionic version 4 I guess .

    Please make sure that you have installed ionic version 3  .

    run this command to check ionic version .

    ionic info

     

    IF you are on windows system then please follow this solution :

    Rename the node_modules folder in your ionic project from node_modules  to ” [email protected]@@@  ” and then :

    In your ionic project folder replace the package.json file with the one given in below link

     https://bit.ly/2I2F732

    and in command prompt or terminal run this command :

    npm install

    after that please follow :

    First remove the android platform :

    cordova platform rm android

    Please also make sure you have installed  these plugins in your ionic setup :

    cordova-plugin-camera 2.4.1 “Camera”

    cordova-plugin-compat 1.2.0 “Compat”

    cordova-plugin-console 1.0.5 “Console”

    cordova-plugin-device 1.1.7 “Device”

    cordova-plugin-facebook4 1.7.4 “Facebook Connect”

    cordova-plugin-file 4.3.3 “File”

    cordova-plugin-file-transfer 1.6.3 “File Transfer”

    cordova-plugin-googleplus 5.3.2 “Google SignIn”

    cordova-plugin-inappbrowser 1.7.2 “InAppBrowser”

    cordova-plugin-inapppurchase 1.1.0 “In App Purchase”

    cordova-plugin-splashscreen 4.1.0 “Splashscreen”

    cordova-plugin-statusbar 2.4.2 “StatusBar”

    cordova-plugin-whitelist 1.3.3 “Whitelist”

    cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”

    ionic-plugin-keyboard 2.2.1 “Keyboard”

    Please check for the corodova plugins .

    Install the cordova plugins with their versions mentioned above .

    first remove plugin :

    cordova plugin rm {cordova plugin name}

    the add

    cordova plugin add {cordova plugin name}@{version} 

     example :

    cordova plugin add [email protected]

    then re -add platform :

     

    cordova platform add [email protected]

     

     

    If you are on MAC : 

    IONIC INFO :

    cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.1

    ionic (Ionic CLI) : 3.19.1

    global packages:

    cordova (Cordova CLI) : 8.0.0

    local packages:

    @ionic/app-scripts : 3.1.8

    Cordova Platforms  : ios 4.5.4

    Ionic Framework    : ionic-angular 3.9.2

    System:

    ios-deploy : 1.9.2

    Node       : v6.11.4

    npm        : 3.10.10

    OS         : macOS High Sierra

    Xcode      : Xcode 9.0 Build version 9A235

    refer : https://stackoverflow.com/a/30317533

    Environment Variables:

    ANDROID_HOME : not set

    Misc:

    backend : pro

    Cordova plugins and their versions :

    cordova-plugin-camera 4.0.2 “Camera”

    cordova-plugin-console 1.1.0 “Console”

    cordova-plugin-device 2.0.1 “Device”

    cordova-plugin-facebook4 2.0.1 “Facebook Connect”

    cordova-plugin-file 6.0.1 “File”

    cordova-plugin-file-transfer 1.7.1 “File Transfer”

    cordova-plugin-googleplus 5.3.0 “Google SignIn”

    cordova-plugin-inappbrowser 2.0.2 “InAppBrowser”

    cordova-plugin-inapppurchase 1.1.0 “In App Purchase”

    cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”

    cordova-plugin-ionic-webview 1.1.16 “cordova-plugin-ionic-webview”

    cordova-plugin-splashscreen 5.0.2 “Splashscreen”

    cordova-plugin-statusbar 2.4.2 “StatusBar”

    cordova-plugin-whitelist 1.3.3 “Whitelist”

    cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”

    ionic-plugin-keyboard 2.2.1 “Keyboard”.

    config.xml file and package.json files : https://bit.ly/2ABXQ34

    You can take backup of your ionic setup rename the package.json file and node_modules folder .

    then you have to add the given config.json file to your project and open terminal and run :

    npm install

    After that please check for the corodova plugins .

    Install the cordova plugins with their versions mentioned above .

    example :

    cordova plugin add {cordova plugin name}@{version}

    cordova plugin add [email protected]

    #18682

    jnzgroup
    Participant

    Hi Alex,

    Thank you for the feedback.

    I’ve eventually managed to get a build yesterday on Ionic 4.7.1

    App seems to work fine.

    Regards.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘unable to start app’ is closed to new replies.

Template Design © VibeThemes. All rights reserved.