-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
ActionView::Template::Error: Error: "var(--ts-pr-caret)" is not a number for `max' #561
Comments
As I'm continuing to troubleshoot this, I removed tom-select and re-added it. Now, I'm seeing a new error: I can verify _items.scss is in tom-select/src/scss/_items.scss |
Pushing to Heroku results in
|
I'm hitting a similar issue but for this line: The error looks like this:
I suspect there's a package that's not a stated dependency which allows calling Update: |
We're not using them anymore, and they were injecting the old sass processor sassc into our dependencies, causing errors. Finally figured this out thanks to orchidjs/tom-select#561 (comment)
Error occurs also when using older versions of bootstrap ( for examle 5.2.3 ), to avoid the error in production, you need to upgrade to the latest version works fine with bootstrap@^5.3.2 |
@martinbarilik I'm using [email protected] and attempting to use [email protected] but still getting this error. How is this working for you? |
I was forced to upgrade to [email protected] in order to work it together. |
I still get this error with Heroku and tom-select 2.3.1 and bootstrap 5.3.2:
|
weird, it should not be the case. Have you tried to upgrade sassc module ? |
I'm using sassc-rails 2.1.2 |
Got it to finally work by switching to |
Happy you got it by yourself. That is exactly what had to be done ;) |
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 |
After installing via "yarn add tom-select", I'm getting the following error locally and while attempting to push to Heroku. In reviewing the scss files under node_modules, it appears variables in tom-select.scss file are not connecting.
ActionView::Template::Error: Error: "var(--ts-pr-caret)" is not a number for `max'
Line 102 in tom-select.scss file is:
padding-right: Max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var(--ts-pr-caret)) ) !important;
Above that on lines 80 through 84, are where the vars are defined. I've been unsuccessful in finding a reason for this...
The text was updated successfully, but these errors were encountered: