ngx-datatableを使おうとしたらコンパイル時に「In ambient enum declarations member initializer must be constant expression」が発生
問題
Angular4で作っているアプリケーションにてdatatableを使おうとしたところ、
コンパイル時に以下のエラーが発生
In ambient enum declarations member initializer must be constant expression
解決方法
typescriptのバージョンを上げればよいらしい。
プロジェクトディレクトリにて、
npm install typescript@latest --save-dev
を実行して、再コンパイルするとなおった。
ただangular-cliとtypescriptの相性等があるので、typescriptのバージョンアップには注意。