-
Notifications
You must be signed in to change notification settings - Fork 95
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 14 compatibility #115
Comments
It relates to breaking changes in Typescript 4.6:
As long as you have |
Thank you, unfortunately I'm using the library in an Angular library project inside my Angular workspace. So I get a compile error while building the library, even before building the main app. I tried to add this to its "include": [
"src/**/*.d.ts"
] and then I added type VisibilityState = DocumentVisibilityState; Yet, when I build it I still get TS2304 cannot find |
@Myrmex For me it worked, when I put in the folder of the root module (in most cases edit: I also named the file |
@FabianDever It worked for me too. I did exactly like you said. Thank you. |
or use this patch: diff --git a/lib/pinch-zoom.component.d.ts b/lib/pinch-zoom.component.d.ts
index c8fa3f1e46b297d3e6ba7b007aaa83c453fd7350..91c21606d3343d483c90cefe554bcc72eac0cfe9 100644
--- a/lib/pinch-zoom.component.d.ts
+++ b/lib/pinch-zoom.component.d.ts
@@ -50,7 +50,7 @@ export declare class PinchZoomComponent implements OnDestroy {
autoHeight: boolean;
wheelZoomFactor: number;
draggableImage: boolean;
- get hostOverflow(): VisibilityState;
+ get hostOverflow(): DocumentVisibilityState;
get hostBackgroundColor(): string;
get isTouchScreen(): boolean;
get isDragging(): any;
@@ -76,7 +76,7 @@ export declare class PinchZoomComponent implements OnDestroy {
getPropertiesValue(propertyName: PropertyName): any;
getDefaultComponentProperties(): {
disabled?: boolean;
- overflow?: VisibilityState;
+ overflow?: DocumentVisibilityState;
disableZoomControl?: "auto" | "disable" | "never";
backgroundColor?: string;
element?: string; |
I forked the project and published an Angular 14 version of this library on npm, for me this works fine. Feel free to use it, but I'm not gonna maintain the project itself. So use it on your own risk :) |
@olafvanv update to angular 15 please :) |
Hi,
I have tried to use this library in a newly created Angular 14 project. Yet, after installing it via npm, I get a compiler error about type
VisibilityState
not being defined (see below). Is there any way to fix this issue and thus trying using the library in a v. 14 app?Thank you!
The text was updated successfully, but these errors were encountered: