moleculerjs / moleculer-repl

REPL module for Moleculer framework
http://moleculer.services/docs/moleculer-repl.html
MIT License
27 stars 25 forks source link

None of the commands work #37

Closed xeroxstar closed 4 years ago

xeroxstar commented 4 years ago

How the commands are working? I tried everything : mol $ nodes -all Invalid Command mol $ nodes -a Invalid Command mol $ nodes[-all] Invalid Command mol $ nodes[-a] Invalid Command mol $ nodes(-a) Invalid Command mol $ nodes(--all) Invalid Command

mol $ nmol $ nomol $ nodmol $ nodemol $ nodesmol $ nodes ( <-- not sure if it should be like that ( is what i see in console)

Invalid option: '[object Object]'. Showing Help:

Usage: nodes [options]

List of nodes

Options:

--help                output usage information
-a, --all             list all (offline) nodes
-d, --details         detailed list
-f, --filter <match>  filter nodes (e.g.: 'node-*')
--raw                 print service registry to JSON
--save [filename]     save service registry to a JSON file

mol $

AndreMaz commented 4 years ago

All good over here cnxWM775qw

xeroxstar commented 4 years ago

Thanks for the quick reply, see what i get

AndreMaz commented 4 years ago

Strange. This is what I get when I'm running nodes --all

image

Are you using moleculer-runner to start the services?

xeroxstar commented 4 years ago

Strange. This is what I get when I'm running nodes --all

image

Are you using moleculer-runner to start the services?

No, i am using a basic example from this location

const broker = new ServiceBroker({ logLevel: "info" }); broker.repl() broker.createService({... my options}); broker.start();

Should i start with moleculer-runner to make it work? Few months ago i was testing this API as it is without MR and it worked, not sure why it's not working now.

AndreMaz commented 4 years ago

Hey. No, there is no need to use moleculer-runner. I just tried to narrow down the source of the problem. Again, the example that you've showed works properly here 9TRYprmnhw

xeroxstar commented 4 years ago

Hey. No there is no to use moleculer-runner. I just tried to narrow down the source of the problem.

I see, let me work on it and i will be back with more details... i need to run some tests and debug my application, maybe something wrong on my side.

xeroxstar commented 4 years ago

I found the bug and it's on my end, i am using a lodash in the global scope global._ (i am running my own mixin with lodash), once i removed it from the global scope, Voilà !!! it's Alive again ... Thanks for the help :)