Skip to content
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

[BUG] Error to generate asyncapi doc with version v2.3.12 #670

Closed
2 tasks done
eduherediaweb opened this issue Aug 29, 2024 · 3 comments
Closed
2 tasks done

[BUG] Error to generate asyncapi doc with version v2.3.12 #670

eduherediaweb opened this issue Aug 29, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@eduherediaweb
Copy link

Describe the bug.

I obtain this error with the latest version v2.3.12 when I execute this:

docker run --rm -it -v ${PWD}/resources/asyncapi:/app/asyncapi -v ${PWD}/api/asyncapi:/output \ asyncapi/generator:1.16.0 /app/asyncapi/returnUpdated.yml @asyncapi/[email protected] --force-write -o /output/html

`Something went wrong:
/usr/local/lib/node_modules/@asyncapi/generator/node_modules/puppeteer-core/lib/cjs/puppeteer/util/disposable.js:9
Symbol.dispose ??= Symbol('dispose');
               ^^^

SyntaxError: Unexpected token '??='
    at wrapSafe (internal/modules/cjs/loader.js:1029:16)
    at Module._compile (internal/modules/cjs/loader.js:1078:27)
    at Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
    at Object.require.extensions. [as .js] (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/ts-node/src/index.ts:1608:43)
    at Module.load (internal/modules/cjs/loader.js:979:32)
    at Function.Module._load (internal/modules/cjs/loader.js:819:12)
    at Module.require (internal/modules/cjs/loader.js:1003:19)
    at require (internal/modules/cjs/helpers.js:107:18)
    at Object. (/usr/local/lib/node_modules/@asyncapi/generator/node_modules/puppeteer-core/src/common/EventEmitter.ts:8:1)
    at Module._compile (internal/modules/cjs/loader.js:1114:14)`

With previous versions (for example v2.3.11) it works correctly.

Expected behavior

`[BABEL] Note: The code generator has deoptimised the styling of /usr/local/lib/node_modules/@asyncapi/generator/node_modules/@asyncapi/html-template/template/js/asyncapi-ui.min.js as it exceeds the max of 500KB.

Done!
Check out your shiny new generated files at /output/html.`

Screenshots

Captura de pantalla 2024-08-29 a las 11 23 19

How to Reproduce

  1. Generate asynacpi doc with html template with v2.3.12

docker run --rm -it -v ${PWD}/resources/asyncapi:/app/asyncapi -v ${PWD}/api/asyncapi:/output
asyncapi/generator:1.16.0 /app/asyncapi/returnUpdated.yml @asyncapi/[email protected] --force-write -o /output/html

🥦 Browser

None

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

@eduherediaweb eduherediaweb added the bug Something isn't working label Aug 29, 2024
Copy link

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.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@derberg
Copy link
Member

derberg commented Sep 2, 2024

sorry about that, fix has been deployed -> #672 (comment)
thanks for letting us know

@derberg derberg closed this as completed Sep 2, 2024
@eduherediaweb
Copy link
Author

Thanks, with the version @asyncapi/[email protected] works correctly. Thanks!

Screenshot from 2024-09-04 20-23-03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants