You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through the official docs to generate code here.
npm install and npm start doesn't start the genrerated server inside output dir.
How to Reproduce
used this command asyncapi generate fromTemplate asyncapi.yaml @asyncapi/nodejs-template -o output -p server=mosquitto to generate the application
used the asyncapi.yaml file from the streetlight eg in the docs here
when I do npm start, the server does not start as mentioned in the docs.
Expected behavior
when i went in the output/src/api/index.js file i didn't see the init function being called anywhere. So, I added client.init() and it started as expected.
I see the client being exported, but according to the docs, just npm start should start the app. That is why raising the issue. Thanks.
The text was updated successfully, but these errors were encountered:
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.
Describe the bug
How to Reproduce
asyncapi generate fromTemplate asyncapi.yaml @asyncapi/nodejs-template -o output -p server=mosquitto
to generate the applicationnpm start
, the server does not start as mentioned in the docs.Expected behavior
client.init()
and it started as expected.The text was updated successfully, but these errors were encountered: