Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Bug in aws-amplify/lib/Analytics/types/Analytics.d.ts #675

Closed
engharb opened this issue Apr 17, 2018 · 4 comments
Closed

Possible Bug in aws-amplify/lib/Analytics/types/Analytics.d.ts #675

engharb opened this issue Apr 17, 2018 · 4 comments
Labels
Analytics Related to analytics bug Something isn't working

Comments

@engharb
Copy link

engharb commented Apr 17, 2018

Bug

I ran $ npm install aws-amplify --save. And when I start run $ ionic cordova run android I got the following exception:

typescript: node_modules/aws-amplify/lib/Analytics/types/Analytics.d.ts, line: 19 
            In ambient enum declarations member initializer must be constant expression. 

      L18:  export declare enum SessionState {
      L19:      START = "START",
      L20:      STOP = "STOP",

those two constants values must be numeric ones not string i.e.

START = 1
STOP = 0

in order to solve problem from angular transpile.js ? Hope that will be fixed soon.

regards,

@richardzcode richardzcode added bug Something isn't working Analytics Related to analytics labels Apr 17, 2018
@richardzcode
Copy link
Contributor

@engharb the problem is incompatibility between angular and typescript. Could you provide detailed steps so we can see if we could reproduce the issue?

Also, could you provide the output of these two command?

ng --version
ionic info

Thanks!

@engharb
Copy link
Author

engharb commented Apr 19, 2018

@richardzcode

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  : android 7.0.0
    Ionic Framework    : ionic-angular 3.3.0

System:

    Node  : v8.10.0
    npm   : 5.6.0 
    OS    : macOS High Sierra
    Xcode : Xcode 9.2 Build version 9C40b 

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro
we are using angular 4 with Ionic 3
angular/core": "4.1.2",

@powerful23
Copy link
Contributor

closing this issue as this is fixed in #670

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Analytics Related to analytics bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants