Advertisement
4tolexx

tom-select-rails issue

Dec 9th, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. ## tom-select-rails error
  2.  
  3. Error: "var(--ts-pr-min)" is not a number for `max'
  4. 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`
  5. 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
  6. from line 9:9 of app/assets/stylesheets/application.scss
  7. >> padding-right: max( var(--ts-pr-min), calc( var(--ts-pr-clear-button) + var
  8. ----------------^
  9.  
  10.  
  11.  
  12. sassc (2.4.0) lib/sassc/engine.rb:50:in `render'
  13. sassc-rails (2.1.2) lib/sassc/rails/template.rb:40:in `block in call'
  14. sprockets (4.2.1) lib/sprockets/utils.rb:145:in `block in module_include'
  15. sprockets (4.2.1) lib/sprockets/utils.rb:130:in `synchronize'
  16. sprockets (4.2.1) lib/sprockets/utils.rb:130:in `module_include'
  17. sassc-rails (2.1.2) lib/sassc/rails/template.rb:39:in `call'
  18. sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
  19. sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
  20. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
  21. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
  22. sprockets (4.2.1) lib/sprockets/processor_utils.rb:22:in `block in <class:CompositeProcessor>'
  23. sprockets (4.2.1) lib/sprockets/processor_utils.rb:33:in `call'
  24. sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
  25. sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
  26. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
  27. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
  28. sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
  29. sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
  30. sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
  31. sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
  32. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
  33. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
  34. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
  35. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
  36. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
  37. sprockets (4.2.1) lib/sprockets/bundle.rb:27:in `call'
  38. sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
  39. sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
  40. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
  41. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
  42. sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
  43. sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
  44. sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
  45. sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
  46. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
  47. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
  48. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
  49. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
  50. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
  51. sprockets (4.2.1) lib/sprockets/bundle.rb:32:in `block in call'
  52. /usr/local/lib/ruby/3.3.0/set.rb:501:in `each_key'
  53. /usr/local/lib/ruby/3.3.0/set.rb:501:in `each'
  54. sprockets (4.2.1) lib/sprockets/bundle.rb:31:in `call'
  55. sprockets (4.2.1) lib/sprockets/processor_utils.rb:84:in `call_processor'
  56. sprockets (4.2.1) lib/sprockets/processor_utils.rb:66:in `block in call_processors'
  57. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `reverse_each'
  58. sprockets (4.2.1) lib/sprockets/processor_utils.rb:65:in `call_processors'
  59. sprockets (4.2.1) lib/sprockets/loader.rb:184:in `load_from_unloaded'
  60. sprockets (4.2.1) lib/sprockets/loader.rb:59:in `block in load'
  61. sprockets (4.2.1) lib/sprockets/loader.rb:339:in `fetch_asset_from_dependency_cache'
  62. sprockets (4.2.1) lib/sprockets/loader.rb:43:in `load'
  63. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `block in load'
  64. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:207:in `block in fetch_or_store'
  65. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:187:in `fetch'
  66. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/map.rb:206:in `fetch_or_store'
  67. sprockets (4.2.1) lib/sprockets/cached_environment.rb:44:in `load'
  68. sprockets (4.2.1) lib/sprockets/base.rb:81:in `find_asset'
  69. sprockets (4.2.1) lib/sprockets/base.rb:88:in `find_all_linked_assets'
  70. sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `each'
  71. sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `to_a'
  72. sprockets (4.2.1) lib/sprockets/manifest.rb:125:in `block (2 levels) in find'
  73. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:24:in `block in execute'
  74. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `block in synchronize'
  75. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
  76. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/synchronization/mutex_lockable_object.rb:48:in `synchronize'
  77. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/safe_task_executor.rb:22:in `execute'
  78. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/promise.rb:564:in `block in realize'
  79. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:359:in `run_task'
  80. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:350:in `block (3 levels) in create_worker'
  81. <internal:kernel>:187:in `loop'
  82. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:341:in `block (2 levels) in create_worker'
  83. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `catch'
  84. concurrent-ruby (1.3.3) lib/concurrent-ruby/concurrent/executor/ruby_thread_pool_executor.rb:340:in `block in create_worker'
  85.  
  86.  
  87. # link to fixing the above issue
  88. https://github.com/orchidjs/tom-select/issues/656
  89.  
  90.  
  91. // import { Controller } from "@hotwired/stimulus";
  92. // import TomSelect from "tom-select";
  93.  
  94. // export default class extends Controller {
  95. // connect() {
  96. // if (!this.element.classList.contains('tomselected')) {
  97. // this.initializeTomSelect();
  98. // }
  99. // this.initializeTomSelect()
  100. // }
  101.  
  102. // initializeTomSelect() {
  103. // this.select = new TomSelect(this.element, {
  104. // maxItems: 1,
  105. // create: false,
  106. // persist: true,
  107. // placeholder: 'Select a resource',
  108. // selectOnTab: true,
  109. // onInitialize: () => {
  110. // this.element.classList.add('tomselected');
  111. // }
  112. // });
  113. // }
  114.  
  115. // disconnect() {
  116. // this.destroyTomSelect();
  117. // }
  118.  
  119. // destroyTomSelect() {
  120. // if (this.select) {
  121. // this.select.destroy();
  122. // }
  123. // }
  124. // }
  125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement