-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
[Bug]: Error: "var(--ts-pr-min)" is not a number for `max' on line 104:17 of tom-select.scss #656
Comments
I can add to this that for calculating vars you need to add an unit type to a value: :root{ This wil not work: this will: |
This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days |
This error happens because the sass compiler confuses the native CSS with sass's max() function. A valid solution would be to generate your own max function that overrides sass's default max function or consider updating the sass compiler it uses. In new versions of dart sass to use these custom functions, you must add them as a dependency to avoid this type of errors. The function just needs to be loaded before loading the tom-select styles.
A similar fix could be made in the tom-select.scss code to solve this problem.
|
still valid. just hit me after upgrading -.- |
The problem is the # See: https://github.com/tablecheck/dartsass-sprockets
gem 'dartsass-sprockets', '~> 3.1' |
This issue has not been active in 120 days and has been marked "stale". Remove stale label or comment or this will be closed in 15 days |
Bug description
May or may not be same as #561, but still present on bs 5.3.2 + tom-select 2.3.1
Bootstrap installed as twbs-gem on rails 7 with importmaps and sassC-rails gems.
Tom Select installed with tom-selec-rails gem.
Error log:
Expected behavior
Assets compilation being successful.
Steps to reproduce
rails s
😁Additional context
The text was updated successfully, but these errors were encountered: