question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'Property<T, U>' has no properties in common with type 'TypedPropertyDescriptor<U>

See original GitHub issue

Hi 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:closed
  • Created 6 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
NickIlievcommented, Jul 5, 2017

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_modules and rebuild your project. Let me know if that resolved your issue.

5reactions
bmargeviciuscommented, Aug 4, 2017

adding “skipLibCheck”: true, to tsconfig helped me get it to build.

“compilerOptions”: {
“skipLibCheck”: true,

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found