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

Open
drawcard opened this issue Mar 12, 2020 · 3 comments
Open

Comments

@drawcard
Copy link

ng serve --prod fails with:

ERROR in ../node_modules/ngx-useful-swiper/lib/swiper/swiper.component.d.ts:7:9 - error TS1086: An accessor cannot be declared in an ambient context.

7     set initialize(value: boolean);
          ~~~~~~~~~~

Running Angular 8.3.23

@tofra
Copy link

tofra commented Mar 13, 2020

The problem is that set initialize(value: boolean); isn't supported by TS 3.5 which is used in angular 8. Updating to angular 9 will resolve it.
see: storybookjs/storybook#9463 (comment)

But it should of course work also in angular 8.

@exocom
Copy link

exocom commented Mar 17, 2020

We downgraded from 9.0.3 to 9.0.0 and it resolved the issue for us.

@drawcard
Copy link
Author

We are in a position where we can't upgrade to angular 9 - the workaround for us is to downgrade for now.

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

3 participants