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

Strict Unary Operators #3173

Open
1 of 2 tasks
andreaslarssen opened this issue Apr 20, 2023 · 1 comment
Open
1 of 2 tasks

Strict Unary Operators #3173

andreaslarssen opened this issue Apr 20, 2023 · 1 comment

Comments

@andreaslarssen
Copy link

Issue type

I'm submitting a ... (check one with "x")

  • bug report
  • feature request

Issue description

Current behavior:
Not 100% this is a bug, but after upgrading from 10 to 11, this warning showed up:

Deprecation This operation is parsed as:

    "Nebular Theme: `nb-theme()` cannot find value for key `" + $key + "` for theme `" + theming-variables.$nb-theme-name + "`"

but you may have intended it to mean:

    "Nebular Theme: `nb-theme()` cannot find value for key `" + $key + "` for theme `" + theming-variables.$nb-theme-name (+"`")

Add a space after + to clarify that it's meant to be a binary operation, or wrap
it in parentheses to make it a unary operation. This will be an error in future
versions of Sass.

More info and automated migrator: https://sass-lang.com/d/strict-unary

null

Steps to reproduce:
It seems to be triggered by theses kind of lines:

 color: nb-theme(some-color-variable);

Other information:

npm, node, OS, Browser
node: v16.18.0
npm: 8.19.2
OS: Ubuntu 22.04.1 LTS

Angular, Nebular

"@angular/core": "15.0.0",
"@nebular/date-fns": "11.0.0",
"@nebular/theme": "11.0.0",
This was referenced Apr 27, 2023
@andreaslarssen
Copy link
Author

Replaced all my usages of nb-theme(some-color-variable) with var(--some-color-variable), and the error still persists. Only explicit function-call left to lib is nb-install() and nb-theme-global()

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

1 participant