-
-
Notifications
You must be signed in to change notification settings - Fork 876
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
Problem with CalendarEvent typing #221
Comments
This relates to #218 and it only happens to you because you upgraded to the latest version. To make it work again, downgrade to Version 0.16.0 or specify the required generic type |
Ah, it seems like generic defaults are only for TS 2.3, IIRC the cli ships with 2.2 by default. If you upgrade typescript to 2.3.x does the problem go away? |
Upgrading the typescript dependency from "~2.2.0" to "~2.3.0" did seem to solve it. |
Just a note: |
Ah it seems like atom-typescript has a hard dependency on an older nightly version of typescript that doesn't have generic defaults. I think it might just be best to revert this for now and give it a few months for tooling to catch up. |
I also needed upgrade |
Upgraded |
This fixed the error for me. |
Changed my mind on this, I've added an explicit peer dependency on typescript 2.3 so folks should get warned when they're using an older version when updating the package. I also sent a PR to the atom typescript package to update its TS dependency: TypeStrong/atom-typescript#1272 |
It seems like it's not a Atom thing only. I am using PHPStorm I have literally just installed the package, and updated typescript and angular/cli to final version. Both in global and locally. Could it be happening in phpStorm too? It doesn't recognize the use of generic defaults. Is there something I can do to make it work until all technology catch up? thanks! |
It works ok for me in webstorm, I didn't think that php storm even supported typescript? |
It does but if generics are not supported in general, it seems to be related to your configuration. There is a bundled typescript version in PHPStorm (have you checked this in preferences -> languages & frameworks -> typescript -> typescript version ?). Try using the version from node_modules instead? You need at least 2.3 version configured |
I just typed again yarn remove angular-calendar && yarn add angular-calendar, and now it seems to recognize the default generics! |
I am still getting the below error with my ts dependencies : "^2.5.3" |
Bug description / Feature request:
These are all of the steps I took up to the issue arising. Starting from creation of the project.
ng new calendar-test
cd calendar-test
npm install --save angular-calendar
At this point I noticed NPM gave me the warning
UNMET PEER DEPENDENCY @angular/animations@^4.0.0
, so I rannpm install --save @angular/animations
Then I added
to my
app.module.ts
and then ranng serve
.Upon running
ng serve
I get a failure to compile with the following error:For bugs only, a link to minimally working plunker that reproduces the issue (you can fork a starter from any of the demos)
Is a plunkr necessary for an issue that arises so early in the bootstrapping process? If so, please let me know and I will try to provide one.
Versions
Angular: 4.1.3
Calendar library: 0.17.0
Browser name and version: N/A
The text was updated successfully, but these errors were encountered: