'Property<T, U>' has no properties in common with type 'TypedPropertyDescriptor<U>
See original GitHub issueHi guys,
when trying to compile my typescript file, I get to see this error.
node_modules/tns-core-modules/ui/core/properties/properties.d.ts(48,14): error TS2559: Type 'Property<T, U>' has no properties
in common with type 'TypedPropertyDescriptor<U>'.
following through on this error, and implementing one of the method decleared in this interface TypedPropertyDescriptor<U> in Property<T, U> the error goes away and I’m able to compile successfully.
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
export class Property<T extends ViewBase, U> implements TypedPropertyDescriptor<U> {
constructor(options: PropertyOptions<T, U>);
public readonly getDefault: symbol;
public readonly setNative: symbol;
public readonly defaultValue: U;
public register(cls: { prototype: T }): void;
public nativeValueChange(T, U): void;
public isSet(instance: T): boolean;
}
Can this be fixed, i’ll rather not have to do this (edit) in my node_modules/tns-core-modules/ui/core/properties/properties.d.ts file.
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Type 'X' has no properties in common with type 'Y'
This code statment raise the following error: error TS2559: Type 'UserPermissionModel' has no properties in common with type ' ...
Read more >Type 'X' has no properties in common with type 'Y' in TS
The error "Type 'X' has no properties with type 'Y'" occurs when we try to assign anything to a weak type when there's...
Read more >[Solved] TypeScript: Type X has no properties in common with ...
I use WebStorm and I have this issue if TypeScript is set to 2.4 in the editor. I would say make sure you...
Read more >Error: Fix Type 'string' has no properties in common ... - YouTube
8.Retrieve Entities with their relations Nest js course: https://courses.nestjs.com/ Fix findOne issue, I used findOneOrFail, you can check ...
Read more >Documentation - Decorators
To enable experimental support for decorators, you must enable the ... how a decorator is applied to a declaration, we can write a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

The error you are hitting is most likely caused by a mismatch of your TypeScript version and the usage of PropertyDescriptors with the syntax supported in previous TS versions`. If you are using TypeScript 2.4.1 you might try to downgrade to 2.3.4. More information here and here.
Once you downgrade the version of your TypeScript, remove
node_modulesand rebuild your project. Let me know if that resolved your issue.adding “skipLibCheck”: true, to tsconfig helped me get it to build.
“compilerOptions”: {
“skipLibCheck”: true,