Open sabrinaToulouse opened 3 years ago
Hi. I think your import is incorrect because the path error is no get in the node module folder.
I have installed it in Angular 11 and 12 end working fine.
My imports.
@import "~@swimlane/ngx-datatable/index.css";
@import "~@swimlane/ngx-datatable/themes/material.scss";
@import "~@swimlane/ngx-datatable/assets/icons.css";
Hi. I think your import is incorrect because the path error is no get in the node module folder.
I have installed it in Angular 11 and 12 end working fine.
My imports.
@import "~@swimlane/ngx-datatable/index.css"; @import "~@swimlane/ngx-datatable/themes/material.scss"; @import "~@swimlane/ngx-datatable/assets/icons.css";
You should be using the style import in angular.json https://angular.io/guide/workspace-config#styles-and-scripts-configuration
Yes! I forgot to say this because i impoterd i my ower lib using @import and in my apps just rum npm install 😁. In this case i dont need to import in angular.json.
If want to change variavel on the style u can import in angular.json and add @import after your changes. This work with bootstrap. Make sure this lib accept it.
I'm submitting a ... (check one with "x")
I just updated to angular 11.2.14 (and ngx-datatable ~19.0.0), and when I try to build my app I now get the error :
I've imported the css like :
I had same issue with the others, but then I used .scss files instead of .css and it solved the issue, but there's no .scss for the icons file.
Please tell us about your environment:
Table version: ~19.0.0
Angular version: 11.2.14