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
private class fields are supported by goja but not by the internal babel. Which means that if babel needs to be used (at this point only for ESM support) it will give you an error on the private field
The fix for this as with other cases where babel gives error but goja will handle the code is to not use babel which at this point is again only used for ESM support.
This hopefully will be picked up in the next release(s) as the major blockage of lack of async/await support is gone.
Brief summary
private class fields are supported by goja but not by the internal babel. Which means that if babel needs to be used (at this point only for ESM support) it will give you an error on the private field
will error out with
But if you use
exports.default = function () {}
at the end it will work as normalk6 version
v0.42.0
OS
all
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Run
Expected behaviour
It works.
Actual behaviour
babel gives you an error
From this community forum post
The text was updated successfully, but these errors were encountered: