You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bring cloud;
// NOT WORKING
let m1 = Map<str> {
"a a": "b",
};
test "test 1" {
log(m1.get("a a"));
}
// WORKING
let m2 = Map<str> {
"a": "b",
};
test "test 2" {
log(m2.get("a"));
}
// WORKING
test "test 3" {
let m3 = Map<str> {
"a a": "b",
};
log(m3.get("a a"));
}
This happened:
when a map has a key that includes a space, it throws this error when the map is in the preflight:
Error: Failed to bundle function: [object Object]
when it doesn't include space or is found within the inflight scope it's working.
I expected this:
to work with no errors
Is there a workaround?
placing the map in the inflight scope
Component
Compiler
Wing Version
0.22.31
Wing Console Version
No response
Node.js Version
No response
Platform(s)
MacOS
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.
The text was updated successfully, but these errors were encountered:
I encountered this as well. It looks like the examples originally posted are working for me (after updating them to the latest map syntax with "=>"), but here is a new example where it fails to bundle when I run wing compile -t tf-aws main.w:
I tried this:
test on sim:
This happened:
when a map has a key that includes a space, it throws this error when the map is in the preflight:
Error: Failed to bundle function: [object Object]
when it doesn't include space or is found within the inflight scope it's working.
I expected this:
to work with no errors
Is there a workaround?
placing the map in the inflight scope
Component
Compiler
Wing Version
0.22.31
Wing Console Version
No response
Node.js Version
No response
Platform(s)
MacOS
Anything else?
No response
Community Notes
The text was updated successfully, but these errors were encountered: