-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
github-action-for-generator: Error: Found non-callable @@iterator #368
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
Please also note that error disappears when switching back to [email protected] version. ` <title>Streetlights API 1.0.0 documentation</title>
Probably same issue here: [https://github.com/asyncapi/html-template/issues/456] |
Hey there, we just released completely new version of this action, it now uses AsyncAPI CLI under the hood please try to use |
I just tried to use the docker://asyncapi/github-action-for-cli:3.0.1 I also tried to provide "cli_version: latest" but that makes no difference. |
@Shurtu-gal please have a look |
@serkmen Couple of things to note :-
|
@Shurtu-gal best would be to enable our docker image to work as before, otherwise our action will not be very handy as it will always be delayed by the fact that image will have to be build as part of workflow run. Advantage of docker is that image is already there, so workflow run is much faster |
Yeah, I was looking into how others were solving it, got an idea what to do from here |
I switched everything to your new GitHub Action asyncapi/[email protected] but the original error of this issue is still the same. My action:
The output: AsyncAPI CLI version: @asyncapi/cli/1.3.0 linux-x64 node-v18.19.0 [BABEL] Note: The code generator has deoptimised the styling of /usr/local/lib/node_modules/@asyncapi/cli/node_modules/@asyncapi/generator/node_modules/@asyncapi/html-template/template/js/asyncapi-ui.min.js as it exceeds the max of 500KB. |
I will look into this. Can you send the AsyncAPI spec as well as workflow run? @pioneer2k |
@Shurtu-gal |
@pioneer2k Was able to reproduce, and from what I could see its a problem with |
@Shurtu-gal |
As can be seen, the PS:- For further info https://github.com/asyncapi/html-template/#supported-parameters |
Yes, you are right. Without the parameter 'sidebarOrganization' it works for me. |
This should be solved by a fix to the underlying react components: asyncapi/asyncapi-react#885 |
Bug Description:
Following error occurs when generating HTML from my AsyncAPI document with the latest versions of github-action-for-generator and html-template in my GitHub Actions
[BABEL] Note: The code generator has deoptimised the styling of /node_modules/@asyncapi/generator/node_modules/@asyncapi/html-template/template/js/asyncapi-ui.min.js as it exceeds the max of 500KB.
Error: Found non-callable @@iterator
How to Reproduce
Please see source files and steps to produce as GitHub Action definition file.
Complete GitHub Action:
API Description Used:
The text was updated successfully, but these errors were encountered: