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. #974

Open
NagaraniG opened this issue Oct 12, 2020 · 1 comment
Open

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

NagaraniG opened this issue Oct 12, 2020 · 1 comment

Comments

@NagaraniG
Copy link

NagaraniG commented Oct 12, 2020

ERROR in node_modules/ngx-chips/components/dropdown/tag-input-dropdown.component.d.ts(92,9): error TS1086: An accessor cannot be declared in an ambient context.

node_modules/ngx-chips/components/dropdown/tag-input-dropdown.component.d.ts(97,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/dropdown/tag-input-dropdown.component.d.ts(110,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/dropdown/tag-input-dropdown.component.d.ts(122,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/dropdown/tag-input-dropdown.component.d.ts(126,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input-form/tag-input-form.component.d.ts(69,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input-form/tag-input-form.component.d.ts(74,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input-form/tag-input-form.component.d.ts(81,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input/tag-input.d.ts(126,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input/tag-input.d.ts(230,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input/tag-input.d.ts(255,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input/tag-input.d.ts(355,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag-input/tag-input.d.ts(359,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/components/tag/tag.component.d.ts(72,9): error TS1086: An accessor cannot be declared in an ambient context.
12-Oct-2020 09:02:57 | node_modules/ngx-chips/components/tag/tag.component.d.ts(131,9): error TS1086: An accessor cannot be declared in an ambient context.
node_modules/ngx-chips/core/accessor.d.ts(21,9): error TS1086: An accessor cannot be declared in an ambient context. node_modules/ngx-chips/core/accessor.d.ts(22,9): error TS1086: An accessor cannot be declared in an ambient context.

Angular version:- 7

not able to run the application

@bjarketrux
Copy link

For a temporary fix - try specifying an older version in the package.json file.

I changed this (actual version used was 2.2.x)

"ngx-chips": "^2.0.2"

With this (fetches 2.0.2)

"ngx-chips": "~2.0.2"

Also remember to commit your package-lock.json file to avoid these problems.
Alternatively you can try to upgrade angular and/or typescript.

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

2 participants