Closed Ghostbird closed 2 years ago
Hey there! Do you have a repro link? I have tested this with an Angular v13 project and for me it worked fine.
Try to change the styles import to
- @import '~ngx-drag-to-select/scss/ngx-drag-to-select';
+ @import 'ngx-drag-to-select/scss/ngx-drag-to-select';
Does that work?
No, sorry, that doesn't work.
To reproduce I just did this:
cd /tmp
ng new testApp --style=scss --routing
cd testApp
echo "@import '~ngx-drag-to-select/scss/ngx-drag-to-select';" >> src/styles.scss
npm install ngx-drag-to-select@latest
ng serve
The result is here: https://github.com/Ghostbird/testApp
Ok, I have fixed this issue and if you install 5.0.1
which is now on npm then you can just import the styles as
// src/styles.scss
@import "ngx-drag-to-select";
I have also updated the README.
Let me know if it works for you.
Thank you so much for the quick fix! This works perfectly.
I'm not sure why it goes wrong. I get this error:
If I switch back to ngx-drag-to-select 4.2.0 it works again.
My app is using Angular 13.0.3 and Angular Material 13.1.0