Cannot capture reassignable field `api.url` from inflight
Closed this issue · 1 comments
eladb commented
I tried this
bring cloud;
resource MyResource {
api: cloud.Api;
init() {
this.api = new cloud.Api();
}
inflight foo() {
log(this.api.url);
}
}
I expected this:
To work
Instead, this happened
| ^^^^^^^^^^^^ Cannot capture reassignable field 'url'
Is there a workaround?
I tried to assign url
in preflight but ran into #2232
Component
Compiler
Wing Version
No response
Wing Console Version
No response
Node.js Version
No response
Platform(s)
No response
Anything else?
No response
Community Notes
- Please vote by adding a 👍 reaction to the issue to help us prioritize.
- If you are interested to work on this issue, please leave a comment.