You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing any sass file (e.g.: @import '~@ngx-gallery/core/styles/lightbox';) throws error:
It's not clear which file to import for @ngx-gallery/core/styles/lightbox. Candidates:
Candidates:
@ngx-gallery/core/styles/lightbox.scss
@ngx-gallery/core/styles/lightbox.css
Please delete or rename all but one of these files.
What are the steps to reproduce?
Trying to import any scss file from the styles directory without specifying the .scss extension results in the error mentioned above. This is because node-sass does not support having both .css and .scss files in the same directory: node-sass#1222
What is the use-case or motivation for changing an existing behavior?
Being able to import the .scss file without throwing any errors.
Which versions are you using for the following packages?
I can see most of the examples where it works are using angular-cli. I'm testing it in an ionic project (which is not using angular-cli) and it fails with the above error.
I suppose ionic and angular-cli might have a different configuration for handling sass imports (it looks like angular-cli is using webpack sass-loader while ionic is not).
Ideally this project should support both (e.g.: by not generating the CSS files in the same directory), but if that's not possible adding a note about this issue to the documentation might help.
What is the expected behavior?
Importing the
sass
files should work as expected.What is the current behavior?
Importing any
sass
file (e.g.:@import '~@ngx-gallery/core/styles/lightbox';
) throws error:What are the steps to reproduce?
Trying to import any
scss
file from thestyles
directory without specifying the.scss
extension results in the error mentioned above. This is becausenode-sass
does not support having both.css
and.scss
files in the same directory: node-sass#1222What is the use-case or motivation for changing an existing behavior?
Being able to import the
.scss
file without throwing any errors.Which versions are you using for the following packages?
Angular: 5.2.10
Angular CDK: 5.2.4
Angular CLI: N/A
Typescript: 2.6.2
Gallery: 2.2.1
Is there anything else we should know?
Moving the generated
.css
files to a different directory should fix this issue.The text was updated successfully, but these errors were encountered: