Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar CSS not working with new version. #736

Open
Abdullah-bin-Ilyas opened this issue Mar 26, 2024 · 2 comments
Open

Sidebar CSS not working with new version. #736

Abdullah-bin-Ilyas opened this issue Mar 26, 2024 · 2 comments

Comments

@Abdullah-bin-Ilyas
Copy link

I have a sidebar in my react app and is working fine with version ^3.2.0 but when i update the package it breaks the sidebar css with latest version ^4.3.2.
My node version is v20.11.1
My npm version is 10.2.4.

@gaweCodes
Copy link

I have the same problem. I use Angular instead of React. But the scss/sass fails. Here is my error message:

./libs/core/ui-layout/src/index.scss?ngGlobalStyle - Error: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
HookWebpackError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
$string: white is not a string.
    ╷
132 │   @if str-index($string, "data:image/svg+xml") {
    │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
  @coreui\coreui\scss\_functions.scss 132:7                      escape-svg()
  node_modules\@coreui\coreui\scss\sidebar\_sidebar.scss 217:37  @import
  node_modules\@coreui\coreui\scss\_sidebar.scss 1:9             @import
  @coreui\coreui.scss 51:9                                       @import
  libs\core\ui-layout\src\index.scss 6:9                         root stylesheet

How to solve this?

@mrholek
Copy link
Member

mrholek commented May 17, 2024

@gaweCodes do you use version 4 or 5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants