Open Alfagun74 opened 10 months ago
Hello! Thank you for filing an issue.
If this is a bug report, please include relevant logs to help us debug the problem.
what nestjs-asyncapi version is that?
@flamewow
I resovled this issue by install @asyncapi/html-template@0.28.4
.
@asyncapi+generator@1.13.1
use @asyncapi/html-template@2.1.7
instead of @asyncapi/html-template@0.28.4
. So the version between generator and template is not compatible.
Hello, flamewow. I also have a similar issue. I'm using pnpm as my package manager.
nestjs-asyncapi@1.3.0 Node version: 20.11.0 node package manager : pnpm
/nestjs-asyncapi@1.3.0(@nestjs/common@10.3.3)(@nestjs/core@10.3.3)(@nestjs/swagger@7.3.0)(@nestjs/websockets@10.3.3)(@swc/core@1.3.107)(@types/node@18.16.20):
resolution: {integrity: sha512-ZtCrPdGGPBIRupI+Zt/9EmYuO6gU9O7snLB81on1nLIoir0pPcWCzIjiq5FafVwiHrV4ideUWklWdqh/xZU5PQ==}
peerDependencies:
'@nestjs/common': ^10.0.0 || ^9.0.0
'@nestjs/core': ^10.0.0 || ^9.0.0
'@nestjs/swagger': ^7.0.0 || ^6.0.0
'@nestjs/websockets': ^10.0.0 || ^9.0.0
peerDependenciesMeta:
'@nestjs/websockets':
optional: true
dependencies:
'@asyncapi/generator': 1.13.1(@swc/core@1.3.107)(@types/node@18.16.20)
'@asyncapi/html-template': 0.28.4
'@nestjs/common': 10.3.3(reflect-metadata@0.1.14)(rxjs@7.8.1)
'@nestjs/core': 10.3.3(@nestjs/common@10.3.3)(@nestjs/platform-express@10.3.3)(@nestjs/websockets@10.3.3)(reflect-metadata@0.1.14)(rxjs@7.8.1)
'@nestjs/swagger': 7.3.0(@nestjs/common@10.3.3)(@nestjs/core@10.3.3)(reflect-metadata@0.1.14)
'@nestjs/websockets': 10.3.3(@nestjs/common@10.3.3)(@nestjs/core@10.3.3)(@nestjs/platform-socket.io@10.3.3)(reflect-metadata@0.1.14)(rxjs@7.8.1)
...
This is error message.
Error: This template is not compatible with the current version of the generator (1.13.1). This template is compatible with the following version range: >=1.15.0 <2.0.0.
at isTemplateCompatible (/Users/hocaron/IdeaProjects/heylu-backend/node_modules/.pnpm/@asyncapi+generator@1.13.1_@swc+core@1.3.107_@types+node@18.16.20/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:56:11)
at module.exports.validateTemplateConfig (/Users/hocaron/IdeaProjects/heylu-backend/node_modules/.pnpm/@asyncapi+generator@1.13.1_@swc+core@1.3.107_@types+node@18.16.20/node_modules/@asyncapi/generator/lib/templateConfigValidator.js:29:3)
at Generator.generate (/Users/hocaron/IdeaProjects/heylu-backend/node_modules/.pnpm/@asyncapi+generator@1.13.1_@swc+core@1.3.107_@types+node@18.16.20/node_modules/@asyncapi/generator/lib/generator.js:188:5)
Describe the bug
Upon generation on Docker node:20.8 image
Environment
Nest version: 10.2.7
Check whether this is still an issue in the most recent Nest version
For Tooling issues:
Others: