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
Webpack Build Errors: An accessor cannot be declared in an ambient context #46
Comments
Potentially related: https://stackoverflow.com/questions/59502139/ts1086-an-accessor-cannot-be-declared-in-an-ambient-context Updating TypeScript to see if that resolves this. If it does, this library should make it clear that TS 3.6+ is a requirement. |
Upgrading TypeScript resolved this issue. |
That's a great find. Do we need to change something to the package? Or was upgrading your project enough? |
I'll add a comment about being on 3.6+ |
I believe this should be corrected, as some may have issues upgrading to TS 3.6 or 3.7 if their dependencies don't support it. I'm not sure what the issue is, but that SO issue is a good start. |
TS 3.7 introduced breaking changes incompatible with TS 3.5 or below, related to typings files I believe. |
I've just created a fresh AspNet Core project with Angular and I'm facing the same issue however I'm on TypeScript 3.8 so I'm not certain why it still isn't working for me:
Edit: using |
@mathiasi, did you find a solution? |
@KeesCBakker Adding |
I read others converted
to
Might be an option for us as well, but I don't know if it messes the existing usages. |
I'm closing the issue. The issue can be resolved by upgrading TypeScript. Thanks for participating guys. |
Expected Behavior
Project builds with webpack through Vue UI.
Current Behavior
It does not, it throws errors.
Steps to Reproduce
(Not sure if this is reproducible that way?)
Enviornment
TypeScript 3.5.3
The text was updated successfully, but these errors were encountered: