Closed Yberion closed 2 years ago
Hi,
It's not a bug with the library. Check out Angular docs about upgrading from v12 to V13.
Hello,
I checked the doc, maybe I'm wrong but there's nothing related to scss import.
There's something about import()
but it's related to scripts not the import inside a scss file.
Maybe I didn't find what you were talking about, what's the way to import the scss white them now?
Thanks for the answer.
I'm not sure what causes the issue, but I have found that providing a full relative path to the theme you want to import works for me.
e.g. @import "../node_modules/ngx-popperjs/scss/theme-white"
I recently upgraded my project to Angular 13 / ngx-popperjs 13 and ran into the same error. A relative path, like @Googlproxer suggested, seems to work, but I think it's worth investigating why @import "~ngx-popperjs/scss/theme";
does not work anymore...
For a short time I had Angular 13 / ngx-popperjs 12 installed. With this configuration, the error did not appear.
And on the other hand, I have other imports in my scss files that continue to work under Angular 13 without having to specify relative paths. E.g." @import "~swiper/swiper.scss";
@Sebiworld the fact is that I perfectly know why it doesn't work anymore...it appears that less and less people are capable of do some research on the web...
Describe the bug I updated
ngx-popperjs
from12.2.1
to13.0.0
because I'm using Angular 13 but I have an error when importing the scss white theme.Check the log at the end of the issue.
To Reproduce Steps to reproduce the behavior:
@import "~ngx-popperjs/scss/theme-white";
or@import "~ngx-popperjs/scss/theme-white.scss";
Using
@import "~ngx-popperjs/css/theme-white.css";
works properly.Expected behavior No error, it was working on version
12.2.1
.Additional context Logs: