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

TypeScript Compile Error : An accessor cannot be declared in an ambient context #1074

Closed
gigenthomas opened this issue Jun 27, 2020 · 3 comments

Comments

@gigenthomas
Copy link

typescript : 3.5.3
Angular CLI: 8.3.28
Node: 12.18.0
@deepstream/client": 5.0.8

"typeRoots": [
"node_modules/@deepstream/client/deepstream-client.d.ts"
]

Get the following error after upgrade to Angular 8. Works just fine in Angular 7.

ERROR in node_modules/@deepstream/client/dist/connection/connection.d.ts:27:9 - error TS1086: An accessor cannot be declared in an ambient context.

27 get isConnected(): boolean;

Any help is greatly appreciated !!

Gigen

@jaime-ez
Copy link
Collaborator

Hi, can you re-open the issue in the deepstream client repo since it is a client issue? Thanks

@yasserf
Copy link
Contributor

yasserf commented Jun 30, 2020

seems this is an issue with angular/typescript version

storybookjs/storybook#9463

easiest thing is apparently adding "skipLibCheck": true

@gigenthomas
Copy link
Author

Thank you @yasserf . Confirmed that the above fix works

Regards,
Gigen Thomas

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