-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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(MatSlider): ERROR TypeError: Cannot read properties of undefined (reading '_hostElement') #29738
Comments
…orrectly Fixes that we were throwing a cryptic error if the slider isn't set up properly. Fixes angular#29738.
You're looking at the docs for a much older version than the one you're running. The correct docs are at https://material.angular.io/components/slider/overview. That being said, the error message we log can be improved. I've sent a fix for the error message at #29745. |
Thank you! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Using this MatSlider component will print the following error in the console
Reproduction
StackBlitz link: https://material-14.angular.cn/guide/getting-started
Steps to reproduce:
Expected Behavior
No error
Actual Behavior
error
Environment
The text was updated successfully, but these errors were encountered: