an ambient enum declarations member initializer must be constant expression
See original GitHub issueI tried to use it with Angular CLI without AOT stuff. But I’m getting a bunch of typescript errors. Can anybody provide me with some guidance on how to fix that?
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/input/input-types.d.ts (2,12): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/input/input-types.d.ts (3,14): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/input/input-types.d.ts (4,16): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/input/input-types.d.ts (5,16): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/date-time/date-time.type.d.ts (2,12): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/date-time/date-time.type.d.ts (3,12): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/date-time/date-time.type.d.ts (4,16): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/notification/notification-style.type.d.ts (2,12): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/notification/notification-style.type.d.ts (3,15): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/notification/notification-style.type.d.ts (4,13): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/notification/notification-style.type.d.ts (5,15): In ambient enum declarations member initializer must be constant expression.
ERROR in /Users/alexanderkozhevin/Desktop/hypermedia/pheromone/node_modules/@swimlane/ngx-ui/release/components/notification/notification-style.type.d.ts (6,12): In ambient enum declarations member initializer must be constant expression.
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (1 by maintainers)
Top Results From Across the Web
(TS) In 'const' enum declartions member initializer must be ...
Build:In 'const' enum declarations member initializer must be constant expression. Code with error: export declare const enum JSDocTagName { ...
Read more >an ambient enum declarations member initializer must be ...
I tried to use it with Angular CLI without AOT stuff. But I'm getting a bunch of typescript errors. Can anybody provide me...
Read more >TS. Ambient enums with non-constant expression : WEB-40588
declare enum E2 { x = 'foo'.length // In ambient enum declarations member initializer must be constant expression } enum E3 { x...
Read more >swimlane/ngx-datatable - Gitter
type.d.ts (3,13): In ambient enum declarations member initializer must be constant expression. ERROR in /Users/admin/Sites/my_app/node_modules/@swimlane/ngx- ...
Read more >Ionic 3 typescript errors - SDKs - #sentry
... line: 6 [app-scripts] In ambient enum declarations member initializer must be constant expression. [app-scripts] L3: Fatal = "fatal", ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I installed latest typescript version inside project. Not globally.
And it’s working now
npm install typescript@2.4.2–save has saved my day