-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Latest Material2 Types Incorrectly Implement 'CanDisable' #4512
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
Comments
What typescript version? |
Forgot to add this to the changelog: this now requires TypeScript 2.2 |
thanks it helped me also guys |
What is the solution for this issue? |
Use TypeScript version >= 2.2 |
I'm using typescript 2.3.2 & not using the MaterialModule. Still getting the error for 5 material components. I'm Using beta 5 |
I have the same problem here. I´m using the latest version. |
@jelbourn This issue was definitely fixed for me by upgrading to TypeScript version 2.2.2 👍 . But maybe >= 2.3 brings the issue back, based on the above replies? |
yep, I tried creating new project with everything on latest version and still getting this error. --update
|
I am using typescript 2.2.2 and still getting the same error. |
I can successfully build material.angular.io w/ beta.5 and both TypeScript 2.2 and 2.3. I suspect lingering problems are individual environment setup issues (perhaps a stale global |
Here it´s ok now: "dependencies": { |
Any one who is getting this error and using visual studio IDE. Just update visual studio to version 15.2 and confirm you have Typescript version 2.2.0 in visual studio. |
Problem with this error still persists in angular 4.1.x, material2.0.0-beta 6. I installed angular material following step by step directions in https://material.angular.io/guide/getting-started. After completing all the steps, I compiled the application in Visual studio 2015 and I got below errors. Please suggest a solution to resolve this problem. Its quite frustrating!!! Here is my dev environment: |
I am also getting this error, using Visual Studio 2017 and I have the latest TypeScript |
Updating VS2017 to version 15.2 did the trick for me. |
I am getting the same error . <<PACKAGE.JSON>> "name": "angular-quickstart", Any Help would be great ! |
I could resolve this by uninstalling typescript
I did this repeatedly until npm start throws below error then I installed latest typescript
Later npm install worked fine for me |
Got this working with with VS 2017 v15.2 |
VS 15.2 worked for me as well.. |
I finally got 15.2 installed and accepted the notification to update my project with the latest typings and this resolved the errors for me. |
i also got this error |
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. |
Uh oh!
There was an error while loading. Please reload this page.
Bug, feature request, or proposal:
Since upgrading material beta from 2.0.0-beta.3 to 2.0.0-beta.4, I'm getting multiple errors for button.d.ts, checkbox.d.ts, radio.d.ts, slide-toggle.d.ts, and slider.d.ts when building.
What is the expected behavior?
The application should build fine with no errors.
What is the current behavior?
When building, I'm getting errors similar to this:
These errors are the same for all 5 components mentioned at the top of this issue.
Which versions of Angular, Material, OS, browsers are affected?
Angular 4.0.2, Material 2.0.0-beta.4, Windows 7 & 10, Chrome
Is there anything else we should know?
I have made sure to remove the deprecated "forRoot()", and I do not use HttpModule from MdIconModule, which are the only breaking changes listed in the changelog.
The text was updated successfully, but these errors were encountered: