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] This template is not compatible with the current version of the generator #346

Open
2 tasks done
emeraldhieu opened this issue Aug 29, 2024 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@emeraldhieu
Copy link

Describe the bug.

I got this error when running the command at https://github.com/asyncapi/template-for-generator-templates?tab=readme-ov-file#how-to-use-this-template-without-modifications

[~]$ ag https://raw.githubusercontent.com/asyncapi/generator/v1.0.1/test/docs/dummy.yml https://github.com/asyncapi/template-for-generator-templates -o output
(node:6538) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Something went wrong:
Error: This template is not compatible with the current version of the generator (2.4.1). This template is compatible with the following version range: >=1.3.0 <2.0.0.
    at isTemplateCompatible (/opt/homebrew/lib/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:57:11)
    at module.exports.validateTemplateConfig (/opt/homebrew/lib/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:30:3)
    at Generator.configureTemplateWorkflow (/opt/homebrew/lib/node_modules/@asyncapi/generator/lib/generator.js:311:5)
    at async Generator.generate (/opt/homebrew/lib/node_modules/@asyncapi/generator/lib/generator.js:199:5)
    at async Generator.generateFromURL (/opt/homebrew/lib/node_modules/@asyncapi/generator/lib/generator.js:473:12)
    at async /opt/homebrew/lib/node_modules/@asyncapi/generator/cli.js:159:9

How can I fix it?

Expected behavior

It works.

Screenshots

There's no screenshot.

How to Reproduce

  1. I first did this
  2. I then did this
  3. And so on . . .

🥦 Browser

Google Chrome

👀 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 ?

No, someone else can work on it

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

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.

Copy link
Member

derberg commented Sep 2, 2024

Thanks, you it be possible for you to open a PR and fix https://github.com/asyncapi/template-for-generator-templates/blob/master/package.json#L68 config ?

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