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.

An accessor cannot be declared in an ambient context

See original GitHub issue

I’m submitting a … (check one with “x”)

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior Getting these errors

node_modules/@swimlane/ngx-datatable/lib/directives/long-press.directive.d.ts:16:9 - error TS1086: An accessor cannot be declared in an ambient context.

16 get press(): boolean; ~~~~~ node_modules/@swimlane/ngx-datatable/lib/directives/long-press.directive.d.tsm:17:9 - error TS1086: An accessor cannot be declared in an ambient context.

17 get isLongPress(): boolean; ~~~~~~~~~~~ node_modules/@swimlane/ngx-datatable/lib/services/column-changes.service.d.ts:8:9 - error TS1086: An accessor cannot be declared in an ambient context.

8 get columnInputChanges$(): Observable<undefined>;

Expected behavior Application should compile without errors

Reproduction of the problem Angular version : 8.2.3 ngx-datatable version: latest 17.0

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Mac OS

  • Table version:
  • Angular version:

Angular version : 8.2.3 ngx-datatable version: latest 17.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5] “typescript”: “~3.5.3”,

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

6reactions
pachu4ucommented, May 1, 2020

Downgraded to 16.0.3 and it seems to be working. Looks like the latest version does not work on Angular 8

0reactions
guidopontetcommented, Oct 26, 2020

Any update? Same here:

"@angular/core": "~8.2.11",
"typescript": "~3.5.3"
Read more comments on GitHub >

github_iconTop Results From Across the Web

TS1086: An accessor cannot be declared in ambient context
- error TS1086: An accessor cannot be declared in an ambient context. [...] Does somebody know a reason? I can't test my app...
Read more >
Fixing accessor cannot be declared in an ambient context error
Fixing accessor cannot be declared in an ambient context error in Angular Animations project with Ionic 4 and Angular 8.
Read more >
An accessor cannot be declared in an ambient context · Issue ...
The Angular Compiler requires TypeScript >=3.4.0 and <3.5.0 but 3.x.y was found instead. yes. i got this error and had to update angular...
Read more >
Angular 7 (An accessor cannot be declared in an ambient ...
Hello. I'm quite new to Angular and when I try to build --prod my angular apps, I get this errors: ERROR in ...
Read more >
An accessor cannot be declared in an ambient context
Hi,. I'm creating an app with language selection and when I try to run it it gives me the following error. Can someone...
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