Especializa / nativescript-ng-shadow

Angular directive to apply shadows to native elements according to the elevation level guidelines of material design specification
Apache License 2.0
54 stars 38 forks source link

In ambient enum declarations member initializer must be constant expression. #4

Closed jdnichollsc closed 6 years ago

jdnichollsc commented 6 years ago

Hi guys,

I'm getting the following alerts from the console with TypeScript 2.2.2. I'm using the https://github.com/TeamMaestro/angular-native-seed

captura de pantalla 2017-11-03 a la s 1 26 24 a m
Found peer TypeScript 2.2.2

2     RECTANGLE = "RECTANGLE",
                  ~~~~~~~~~~~

node_modules/nativescript-ng-shadow/common/shape.enum.d.ts(2,17): error TS1066: In ambient enum declarations member initializer must be constant expression.

3     OVAL = "OVAL",
             ~~~~~~

node_modules/nativescript-ng-shadow/common/shape.enum.d.ts(3,12): error TS1066: In ambient enum declarations member initializer must be constant expression.

4     RING = "RING",
             ~~~~~~

node_modules/nativescript-ng-shadow/common/shape.enum.d.ts(4,12): error TS1066: In ambient enum declarations member initializer must be constant expression.

5     LINE = "LINE",
             ~~~~~~

node_modules/nativescript-ng-shadow/common/shape.enum.d.ts(5,12): error TS1066: In ambient enum declarations member initializer must be constant expression.

Thanks in advance

GrEg00z commented 6 years ago

any news about this ? The problem is present since 3 weeks...

drice commented 6 years ago

Try a newer version of Typescript

berardo commented 6 years ago

Yep, that's not an issue in the plugin. Please try TS >= 2.4