moleculerjs / moleculer-repl

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

error: unknown command on REPL #76

Closed jellydn closed 7 months ago

jellydn commented 8 months ago

What

It's working for me with ver 0.6.6 but got the unknown command with moleculer-repl to v0.7.4. For instance:

[2023-11-29T02:27:40.129Z] INFO  api-4zb87hdr0pfc6s5k5mox4o/BROKER: ✔ ServiceBroker with 1 service(s) started successfully in 559ms.
mol $ actions
error: unknown command 'actions;'
(Did you mean actions?)

Reproduce steps

Refer https://github.com/jellydn/moleculer-connect/pull/3

Steps:

Env

node -v
v20.10.0
AndreMaz commented 7 months ago

I'm not familiar with the entire setup of your repo but running npm run build and then npm run start works as expected

image

jellydn commented 7 months ago

Thanks @AndreMaz I guess you have tested on main branch. Could you take a try with renovate/moleculer-repl-0.x branch?

 - Clone repo
 - Checkout the branch: 'renovate/moleculer-repl-0.x'
AndreMaz commented 7 months ago

Hi. What I'm trying to say is that, in attempt to isolate the problem, I've skipped the entire logic of your base repo and skipped all the steps that are present in Makefile

I copied this repo over here (link to the repo: https://github.com/jellydn/moleculer-typescript-template) that uses moleculer-repl@0.7.4. image

and then tried to build and start it. When doing things this way REPL is working as expected.

All of this to say that something at moleculer-connect repo is interfering with the REPL

jellydn commented 7 months ago

Thanks @AndreMaz for your time.

I copied this repo over here (link to the repo: jellydn/moleculer-typescript-template) that uses moleculer-repl@0.7.4.

Actually, it's using 2 versions on the moleculer-typescript-template( 0.6.6 and 0.7.4) if you look no the lock file. My point is it's working for 0.6.6 and get weird error with 0.7.4. I closed this issue for now.