Ionic serve typescript error

Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #49170

    Malika Sharma
    Participant

    Error
    Close
    Typescript Error
    ‘;’ expected.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    gtagName?: string;
    /** Sets custom name for dataLayer array used by gtag. */
    dataLayerName?: string;
    Typescript Error
    ‘EventNameString’ only refers to a type, but is being used as a value here.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    gtagName?: string;
    /** Sets custom name for dataLayer array used by gtag. */
    dataLayerName?: string;
    Typescript Error
    Cannot find name ‘never’.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    gtagName?: string;
    /** Sets custom name for dataLayer array used by gtag. */
    dataLayerName?: string;
    Typescript Error
    Cannot find name ‘T’.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    gtagName?: string;
    /** Sets custom name for dataLayer array used by gtag. */
    dataLayerName?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    SET_CHECKOUT_OPTION = ‘set_checkout_option’,
    SHARE = ‘share’,
    SIGN_UP = ‘sign_up’,
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    SHARE = ‘share’,
    SIGN_UP = ‘sign_up’,
    TIMING_COMPLETE = ‘timing_complete’,
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    SIGN_UP = ‘sign_up’,
    TIMING_COMPLETE = ‘timing_complete’,
    VIEW_CART = ‘view_cart’,
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    TIMING_COMPLETE = ‘timing_complete’,
    VIEW_CART = ‘view_cart’,
    VIEW_ITEM = ‘view_item’,
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    VIEW_CART = ‘view_cart’,
    VIEW_ITEM = ‘view_item’,
    VIEW_ITEM_LIST = ‘view_item_list’,
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    VIEW_ITEM_LIST = ‘view_item_list’,
    VIEW_PROMOTION = ‘view_promotion’,
    VIEW_SEARCH_RESULTS = ‘view_search_results’
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    VIEW_PROMOTION = ‘view_promotion’,
    VIEW_SEARCH_RESULTS = ‘view_search_results’
    }
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    VIEW_SEARCH_RESULTS = ‘view_search_results’
    }
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    }
    export type Currency = string | number;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    export type Currency = string | number;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    export type Currency = string | number;
    export interface Item {
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    export interface Item {
    item_id?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    export interface Item {
    item_id?: string;
    item_name?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_id?: string;
    item_name?: string;
    item_brand?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_name?: string;
    item_brand?: string;
    item_category?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_brand?: string;
    item_category?: string;
    item_category2?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_category?: string;
    item_category2?: string;
    item_category3?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_category2?: string;
    item_category3?: string;
    item_category4?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_category4?: string;
    item_category5?: string;
    item_variant?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_category5?: string;
    item_variant?: string;
    price?: Currency;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_variant?: string;
    price?: Currency;
    quantity?: number;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    price?: Currency;
    quantity?: number;
    index?: number;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    quantity?: number;
    index?: number;
    coupon?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    index?: number;
    coupon?: string;
    item_list_name?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    coupon?: string;
    item_list_name?: string;
    item_list_id?: string;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_list_name?: string;
    item_list_id?: string;
    discount?: Currency;
    Typescript Error
    In ambient enum declarations member initializer must be constant expression.
    …:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/node_modules/firebase/index.d.ts
    item_list_id?: string;
    discount?: Currency;
    affiliation?: string;
    Typescript Error
    Cannot find name ‘BarcodeScanner’.
    C:/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/src/pages/profile/profile.ts
    public attendance: AttendanceService,
    private barcodeScanner: BarcodeScanner,
    ) {
    Typescript Error
    Cannot find name ‘Push’.
    …/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/src/services/push_notification.ts
    public storage: Storage,
    private push: Push,
    private platform: Platform,
    Typescript Error
    Cannot find name ‘PushOptions’.
    …/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/src/services/push_notification.ts
    });
    const options: PushOptions = {
    android: {
    Typescript Error
    Cannot find name ‘PushObject’.
    …/Users/zealw/OneDrive/Desktop/Ionic/LearnEasee/src/services/push_notification.ts
    };
    const pushObject: PushObject = this.push.init(options);
    pushObject.on(‘notification’).subscribe((notification: any) =>
    Ionic Framework: 3.6.1
    Ionic App Scripts: 3.2.4
    Angular Core: 4.1.3
    Angular Compiler CLI: 4.1.3
    Node: 12.16.1
    OS Platform: Windows 10
    Navigator Platform: Win32
    User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36

    #49208

    Harry
    Keymaster

    Hello

    For ionic Setup Just follow these step then you don’t get the error : https://bit.ly/3bElKLg

     

    #49494

    Malika Sharma
    Participant

    I’ve reset my pc and reinstalled ionic/git/vs/cordova etc. now I’m getting another error after loading ionic serve. Kindly check the error screenshots on below url and help me to resolve the issue.

    https://drive.google.com/drive/folders/1edgiRjYJZL7DQnrQbJAnHjn-x6cNVhMA?usp=sharing

     

    #49749

    Harry
    Keymaster

    Hello

    Share Your site credential, I am checking with my setup if it will work.

    Then i am trying to Fix with Team-viewer.

    #49803

    Malika Sharma
    Participant
    This reply has been marked as private.
    #49823

    Harry
    Keymaster

    Hello

    In My setup the App will be working Fine see this Video : https://bit.ly/3eeIraV

    In App Folder replace the package.json with this : https://we.tl/t-XbxarsQvVF  After that rename the node_module folder and then run this command
    npm install.

    This will work.

    #49842

    Malika Sharma
    Participant
    This reply has been marked as private.
    #49875

    Malika Sharma
    Participant
    This reply has been marked as private.
    #49904

    Harry
    Keymaster

    Hello

    In These screenshot there is not an error.

    It will take some time to compile

    ionic cordova build –release android

     

     

    #49974

    Malika Sharma
    Participant
    This reply has been marked as private.
    #49995

    Malika Sharma
    Participant
    This reply has been marked as private.
    #49996

    Malika Sharma
    Participant

    here is screenshot of env variables

    https://drive.google.com/file/d/1acnEEDUcMzzVSa8JjlhCRtBeg40agq3n/view?usp=sharing

    unable to create apk file

    #50019

    Harry
    Keymaster

    Hello

    The error is in the env variable so place the variable with this : https://bit.ly/3bpmofy

     

     

    #50076

    Malika Sharma
    Participant
    This reply has been marked as private.
    #50194

    Harry
    Keymaster

    Hello

    For setup the wplms app Follow this command https://bit.ly/2z3lI1b

    When you follow these steps then the app build will work properly.

     

    #50260

    Malika Sharma
    Participant

    Same error again, Could you please give me proper solution?

    #50538

    Malika Sharma
    Participant
    This reply has been marked as private.
    #50544

    Harry
    Keymaster

    Hello

    If you get the error for setup the app.Then send your team viewer id and password.

    I am helping you to setup the ionic app.

     

    #50610

    Malika Sharma
    Participant
    This reply has been marked as private.
    #50657

    Harry
    Keymaster

    Hello

    I will be working this on today 3:30PM .

    SO Please be ready on this time.

    #50691

    Malika Sharma
    Participant
    This reply has been marked as private.
    #50751

    Malika Sharma
    Participant
    This reply has been marked as private.
    #50772

    Harry
    Keymaster

    Hello

    I am trying to connect on 3:30PM but The team-viewer shows offline.

    So Today 3:30 PM I have done this.so when you online then you should ping me on Facebook: https://www.facebook.com/Vibethemes/inbox/

     

Viewing 23 posts - 1 through 23 (of 23 total)
  • You must be logged in to reply to this topic.