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

An accessor cannot be declared in an ambient context. #147

Open
keygjones opened this issue Dec 15, 2020 · 2 comments
Open

An accessor cannot be declared in an ambient context. #147

keygjones opened this issue Dec 15, 2020 · 2 comments
Labels

Comments

@keygjones
Copy link

I get an ERROR in ../node_modules/@ng-idle/core/lib/eventtargetinterruptsource.d.ts:29:9 - error TS1086:
An accessor cannot be declared in an ambient context.
at compile time.

Can avoid it by setting the "skipLibCheck": true, in tsconfig , but not a desired setting.

"peerDependencies": {
"@angular/animations": "^8",
"@angular/cdk": "^8",
"@angular/common": "^8",
"@angular/core": "^8",
"@angular/forms": "^8",
"@ngx-translate/core": "^11",
"rxjs": "^6"
},
"dependencies": {
"@ng-idle/core": "10.0.0-beta.1",
"@ng-stack/forms": "^1.3.4",
"js-uuid": "^0.0.6",
"moment": "^2.24.0",
"ng-click-outside": "^3.3.0",
"tslib": "^2.0.3"
},
"devDependencies": {
"@babel/generator": "^7.11.6"
}

Anyone else had this one?

@keygjones keygjones added the bug label Dec 15, 2020
@trbenne2
Copy link

I am getting the same error running a angular 8 application. My peer is running a angular 9 and is not getting the same error. So, I don't know if it's a version issue.

@ShinRai1090
Copy link

Same here... Angular 8 and got this error.

The issue is actually the version dependency not working properly. On an angular 8 project the npm install should install "v8.0.0-beta.4" but it installed version 10. Referred the changelog for deducing it.

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

No branches or pull requests

3 participants