-
-
Notifications
You must be signed in to change notification settings - Fork 634
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: An accessor cannot be declared in an ambient context #308
Comments
This seems to be due to microsoft/TypeScript#33939. |
Looks like other libraries have run into this issue as well, e.g. |
Any solution to this? Dealing with it as well. |
It seems the best solution at the moment is to update your version of TypeScript to |
Hi, thanks for answering you all, I haven't upgraded my Angular compiler version yet, it is still ~7.1.0, so I can only use Typescript ~3.2.4, my teammates tell me that in order to use Typescript 3.7.x I have to upgrade Angular from 7 to 8 first, I will let you know If by doing so my problem is solved. |
Hello again, It seems that as you both said the real solution is to upgrade Typescript version. Thank you everyone |
Version You can install this new version with npm:
It's also available on unpkg: As well as jsDelivr: |
Hello,
I'm having an issue when compiling my project:
I deleted the node_modules folder to do a "clean" npm install and then I installed
-> npm i pdf-lib@1.2.0 (we were using 1.2.1 so we tried using 1.2.0 and "it worked" but then we couldn't login into our project even with the server running).
Then one of our teammates upgraded the Angular version from 7 to 8 and the error was still there.
The text was updated successfully, but these errors were encountered: