Comments (4)
I think the problem here is that the warning prevents the slider form rendering, which then causes the Error when the component tries binding to the non-existent slider. What are you passing to the range property of the component?
from ember-cli-nouislider.
same I'm also facing this issue. Below are the values that i'm passing
{{range-slider
start= 20
min=0
max=100
step=10
connect=true
on-change=(action "myAction")
}}
from ember-cli-nouislider.
@Sateeshwaran Are you passing in those constants, or binding to properties? If the range-slider tries to render before a computed property has a valid value, you could see that error.
Also, I'm not sure if you're getting the same warning as the original poster (range is not an object) or just the error in the issue title. If you are just referring to the "cannot read property 'on' of undefined" then look for a warning before it, which is the actual cause of the error:
from ember-cli-nouislider.
In my case I was passing a number for @opacity, not [number]
. Bad error messaging tbh.
from ember-cli-nouislider.
Related Issues (20)
- New Ember Version 3.25 to 3.28 throws error on build of ember-cli-nouislider template
- Ember.Logger deprecation HOT 1
- Add docs for changing slider values HOT 1
- noUi-background element nonexistent? HOT 1
- Deprecation warning - Scheduling into the 'sync' run loop queue HOT 5
- setting a computed range causes "Missing 'min' or 'max' in 'range'" HOT 1
- Ember 3.x compatibility? HOT 8
- setValue is triggered during slide-action HOT 7
- Unexpected range values when setting step HOT 2
- [ember-cli-nouislider]: Error: noUiSlider (11.1.0): 'range' is not an object. HOT 1
- Observer is causing performance issues HOT 3
- Property 'padding' is not passed to nouislider HOT 2
- How to set slider value programatically? HOT 1
- Deprecation msg on the use of sendAction thrown in Ember 3.4.x HOT 2
- Deprecation warnings: HOT 2
- Overriding Range as described in online docs is deprecated in Ember 3.9+
- Cannot update `max` value after initial render HOT 1
- `slider` is undefined in integration test, leading to failure with "Cannot read property 'on'/'off' of undefined"
- on-start and on-end still use deprecated sendAction method HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-nouislider.