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
Angular 12 does not build with Preact 10.13 #7225
Comments
You're using a very old version of TypeScript that does not ship with Preact v |
I do not use preact at all. This is a dependency of Fullcalendar/core and I assume that it is needed for React, but I use Angular. Please check my request once more: packages were not changed for a half a year, everything worked fine until external update of preact package which is a dependency of Fullcalendar/core without strict version. From my prospective, packages should be defined such way, that any update of external depth won |
Because
You can pin library versions yourself, if need be.
I all but guarantee there are TS breaking changes in that range too. Trying to restrict versions based on which in-built TS features it relies on is just not the way the TS ecosystem works, for better or for worse. For what it's worth, I'm not a maintainer here, but I am one of Preact's maintainers and someone made a similar bug in the Preact repo today, which is why I'm here. I personally can't debate the merits of version pinning for this library, however, types more or less exist outside of semver -- as any alteration at all is a breaking change, they're generally not included in semver considerations. |
if you lock your preact version manually in package.json like |
I'd like to add that ...Which was.. a very unpleasant surprise. (We're having the same issue in our Angular 12 project.) |
I mentioned 3 possible solutions above, but you can also patch the types or disable Angular's TS version check, apparently. Again, not a maintainer, just trying to give some possible solutions as someone raised this issue on our tracker earlier. |
Fix is queued for release. I'm scoping preact's semver to |
Implemented in v6.1.5 Please post here if there are continued issues with this. |
It still does not work for fullcalendar@5.11.4: Verify here version of preact:
Maybe it`s better to up the version of the package? |
They fixed the issue in version 6.1.5. v5.11.4 is legacy now, what is suggest is update your @fullcalender core and all the relevant packages |
Great fix:) |
For version 5 you can manually lock preact package to the old version i did something like |
I can, and this is what I`ve done before, but expected, that the owner of the library will provide fix for the 5th version also. |
Apologies @vgoreiko , I'll backport this bugfix to v5 as well. Please stay tuned... |
Reduced Test Case
Angular 11 project with fullcalendar@5.11.4
Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?
Which connector are you using (React/Angular/etc)?
Angular
Bug Description
We use FullCalendar in Angular project. And today recently build start to fail constantly.
As I see, there is a dependency in @fullcalendar/core from "preact": "^10.0.5" and it is not strict.
Several hours ago this preact package was updated to the version 10.13.0.
part of dependencies:
part of package.lock.json
Error:
As a quick fix: add preact packages 10.0.5 as dev dependency. But this is temporary solution!
The text was updated successfully, but these errors were encountered: