Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## tom-select-rails error
- Error: "var(--ts-pr-min)" is not a number for `max'
- on line 104:17 of ../usr/local/bundle/gems/tom-select-rails-2.3.1/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss, in function `max`
- from line 104:17 of ../usr/local/bundle/gems/tom-select-rails-2.3.1/vendor/assets/stylesheets/tom-select-rails/scss/tom-select.scss
- from line 9:9 of app/assets/stylesheets/application.scss
- >> padding-right: max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var
- ----------------^
- sassc (2.4.0) lib/sassc/engine.rb:50:in `render'
- sassc-rails (2.1.2) lib/sassc/rails/template.rb:40:in `block in call'
- sprockets (4.2.1) lib/sprockets/utils.rb:145:in `block in module_include'
- sprockets (4.2.1) lib/sprockets/utils.rb:130:in `synchronize'
- sprockets (4.2.1) lib/sprockets/utils.rb:130:in `module_include'
- sassc-rails (2.1.2) lib/sassc/rails/template.rb:39:in `call'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:22:in `block in <class:CompositeProcessor>'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:33:in `call'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
- sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
- sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
- sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
- sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
- sprockets (4.2.1) lib/sprockets/bundle.rb:27:in `call'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
- sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
- sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
- sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
- sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
- sprockets (4.2.1) lib/sprockets/bundle.rb:32:in `block in call'
- /usr/local/lib/ruby/3.3.0/set.rb:501:in `each_key'
- /usr/local/lib/ruby/3.3.0/set.rb:501:in `each'
- sprockets (4.2.1) lib/sprockets/bundle.rb:31:in `call'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
- sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
- sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
- sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
- sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
- sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
- sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
- sprockets (4.2.1) lib/sprockets/base.rb:81:in `find_asset'
- sprockets (4.2.1) lib/sprockets/base.rb:88:in `find_all_linked_assets'
- sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `each'
- sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `to_a'
- sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/promise.rb:564:in `block in realize'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
- <internal:kernel>:187:in `loop'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
- concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
- # link to fixing the above issue
- https://github.com/orchidjs/tom-select/issues/656
- // import { Controller } from "@hotwired/stimulus";
- // import TomSelect from "tom-select";
- // export default class extends Controller {
- // connect() {
- // if (!this.element.classList.contains('tomselected')) {
- // this.initializeTomSelect();
- // }
- // this.initializeTomSelect()
- // }
- // initializeTomSelect() {
- // this.select = new TomSelect(this.element, {
- // maxItems: 1,
- // create: false,
- // persist: true,
- // placeholder: 'Select a resource',
- // selectOnTab: true,
- // onInitialize: () => {
- // this.element.classList.add('tomselected');
- // }
- // });
- // }
- // disconnect() {
- // this.destroyTomSelect();
- // }
- // destroyTomSelect() {
- // if (this.select) {
- // this.select.destroy();
- // }
- // }
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement