Closed Alokeen closed 5 years ago
I managed to get rid of rxjs errors by upgrading to rxjs 5.5.12, but the
datatable.component.css.ngstyle.ts
error remains
Fixed the failing build by correcting the regex for CSS files:
{ test: /\.css$/, use: ['to-string-loader', 'css-loader', 'postcss-loader'] },
Added the $
after css
.
I'm submitting a ... (check one with "x")
Current behavior AOT build fails with:
Expected behavior AOT build passes
Reproduction of the problem Include datatable module as such:
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
Run webpack in prod mode, with AOT.What is the motivation / use case for changing the behavior? Use datatables with AOT build
Please tell us about your environment: package.json excerpt: (omitted scripts and app name)
Webpack config:
Table version: Tried with several versions, from 10.0.4 to 11.3.0 (later versions are for newer angular version)
Angular version: 4.4.6
Browser: N/A - build fails
Language: TS 2.4.1 targeting ES5