event-catalog / generator-asyncapi

AsyncAPI generator for EventCatalog
https://www.eventcatalog.dev/docs/development/integrations/async-api/intro
Other
9 stars 4 forks source link

The Generator fails when running the "Processing service" step #41

Closed frodesorhoy closed 1 month ago

frodesorhoy commented 2 months ago

I tried this:

I'm running the command "npm run generate".

The data used is the "eventcatalog-asyncapi-example". Cloned the project

This happened:

It fails with the message:

Processing service: Orders Service (v1.0.1) Error loading plugin: Error: ENOENT: no such file or directory, open 'C:\Tools\eventcatalog-asyncapi-example\services\Orders Service\C:\Tools\eventcatalog-asyncapi-example\asyncapi-files\orders-service.yml' at async open (node:internal/fs/promises:638:25) at async Object.writeFile (node:internal/fs/promises:1215:14) at async addFileToResource (C:\Tools\eventcatalog-asyncapi-example\node_modules\@eventcatalog\sdk\dist\index.js:176:3) at async src_default (C:\Tools\eventcatalog-asyncapi-example\node_modules\@eventcatalog\generator-asyncapi\dist\index.js:310:5) at async generate (file:///C:/Tools/eventcatalog-asyncapi-example/.eventcatalog-core/scripts/generate.js:50:9) { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Tools\eventcatalog-asyncapi-example\services\Orders Service\C:\Tools\eventcatalog-asyncapi-example\asyncapi-files\orders-service.yml' }

I expected this:

No error

Is there a workaround?

Not that I can see

Anything else?

No response

EventCatalog Version

@eventcatalog/core": {"version": "2.7.16"}

Node.js Version

v22.5.1

Platform(s)

Windows

Community Notes

siualpinto commented 1 month ago

It also happens to me image Inside of Orders Services folder in index.md I got this: image

jcfore21 commented 1 month ago

I'm also getting this error, cloning directly and then trying the steps to get it to generate. I even took my own custom .yml files and it fails at the same step for my services. Seems to be an issue with the the paths for services.

image

boyney123 commented 1 month ago

We had some issues with windows OS and some node issues. These should be fixed in @eventcatalog/generator-asyncapi@2.1.0, try that version and let me know if you still see issues. Thanks!

frodesorhoy commented 1 month ago

Thanx. That did the trick. Using v2.1.* I'm now able to run the generators and the example sites.