Repository navigation
Closed
Labels
Description
Describe the bug
CLI is working fine in the development environment, but in production, it is breaking, no command is usable and most probably this is happening because of some plugin issue.
(node:11624) [MODULE_NOT_FOUND] Error Plugin: @asyncapi/cli: Cannot find module '@oclif/plugin-help/lib/command'
Require stack:
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@fmvilas\oclif-plugin-spaced-commands\lib\hooks\init.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\config\lib\config.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\config\lib\index.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\command\lib\command.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\command\lib\index.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\bin\run
module: @oclif/[email protected]
task: runHook init
plugin: @asyncapi/cli
root: C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli
See more details with DEBUG=*
(Use `node --trace-warnings ...` to show where the warning was created)
Error: Unable to load configured help class "./lib/help", failed with message:
Cannot find module '@oclif/plugin-help/lib/command'
Require stack:
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\lib\help\CommandHelper.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\lib\help\index.js
-
C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\help\lib\util.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\help\lib\comman
d.js
-
C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\help\lib\index.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\command\lib\com
mand.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\node_modules\@oclif\command\lib\ind
ex.js
- C:\Users\XRIG\AppData\Roaming\npm\node_modules\@asyncapi\cli\bin\run
How to Reproduce
Since we are not using oclif-dev pack there is no way to reproduce this error it is just failing in the production, so to reproduce this error -
- Install cli globally -
npm install -g @asyncapi/cli - Try printing cli help -
asyncapi --help

Activity
imabp commentedon Jan 23, 2022
I guess this can help.
heroku/heroku-cli-addons-admin#28
Souvikns commentedon Jan 27, 2022
I was trying to find from which release this error started and what I found is interesting -
The CLI works, just throws that warning for some reason.
v0.7.0 was our first oclif release, and we have the same issue but the help command works
KhudaDad414 commentedon Mar 7, 2022
@Souvikns I see the error log is initiated from
fmvilas\oclif-plugin-spaced-commandsplugin. can't we use topic seperator instead of this plugin and see if it resolves the issue?Souvikns commentedon Mar 7, 2022
Yeah, @KhudaDad414 we merged this #203 and now we have moved to
topic separator. For some reason, it did not trigger a release thoughderberg commentedon Mar 8, 2022
do we know if latest release fixed CLI?
Souvikns commentedon Mar 8, 2022
https://github.com/asyncapi/cli/actions/runs/1922065237 we have to merge another PR to check. But I think the warnings are fixed now.
pushred commentedon Mar 8, 2022
I'm getting this error running
asyncapi validateafter a fresh install (am a new user):@asyncapi/[email protected]installed withnpm install --save-dev @asyncapi/cliSouvikns commentedon Mar 16, 2022
So this is fixed now due to #203.
@pushred you can update CLI to
^@0.16.0.fmvilas commentedon Apr 29, 2022
@Souvikns would you mind closing this issue?