Skip to content
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

error TS1086: An accessor cannot be declared in an ambient context. #124

Open
billersfy opened this issue Dec 1, 2020 · 0 comments
Open

Comments

@billersfy
Copy link

i am using ng2-tooltip-directive 1 year ago, today i have some errors when i try to compile angular project. That error is not related with some releases recently. I am watchivg that hte angular version should be 10 but i am working with 8

ERROR in node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:19:9 - error TS1086: An accessor cannot be declared in an ambient context.

19 set show(value: boolean);
~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:20:9 - error TS1086: An accessor cannot be declared in an ambient context.

20 get show(): boolean;
~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:21:9 - error TS1086: An accessor cannot be declared in an ambient context.

21 get placement(): any;
~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:22:9 - error TS1086: An accessor cannot be declared in an ambient context.

22 get autoPlacement(): any;
~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:23:9 - error TS1086: An accessor cannot be declared in an ambient context.

23 get element(): any;
~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:24:9 - error TS1086: An accessor cannot be declared in an ambient context.

24 get elementPosition(): any;
~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:25:9 - error TS1086: An accessor cannot be declared in an ambient context.

25 get options(): any;
~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:26:9 - error TS1086: An accessor cannot be declared in an ambient context.

26 get value(): any;
~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:27:9 - error TS1086: An accessor cannot be declared in an ambient context.

27 get tooltipOffset(): number;
~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:28:9 - error TS1086: An accessor cannot be declared in an ambient context.

28 get isThemeLight(): boolean;
~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:29:9 - error TS1086: An accessor cannot be declared in an ambient context.

29 set options(value: TooltipOptions);
~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:30:9 - error TS1086: An accessor cannot be declared in an ambient context.

30 get options(): TooltipOptions;
~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:58:9 - error TS1086: An accessor cannot be declared in an ambient context.

58 get isTooltipDestroyed(): any;
~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:59:9 - error TS1086: An accessor cannot be declared in an ambient context.

59 get destroyDelay(): number;
~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:60:9 - error TS1086: An accessor cannot be declared in an ambient context.

60 set destroyDelay(value: number);
~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:61:9 - error TS1086: An accessor cannot be declared in an ambient context.

61 get tooltipPosition(): any;
~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:83:9 - error TS1086: An accessor cannot be declared in an ambient context.

83 get isDisplayOnHover(): boolean;
~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:84:9 - error TS1086: An accessor cannot be declared in an ambient context.

84 get isDisplayOnClick(): boolean;
~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:85:9 - error TS1086: An accessor cannot be declared in an ambient context.

85 get isTouchScreen(): boolean;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant