function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Frans Flippo 14Frans Flippo 14 

New SFDX plugin: commands are not picked up

Hi all,

I want to write a custom SFDX plugin so I'm following the instructions on and on .

However, I get the following error when following the steps in the video and executing bin/run hello:org:
›   Error: command hello:org not found

Somehow, on another plugin I generated in a similar way, this was working, but when I renamed the src/commands/hello folder and the src/commands/hello/org.ts files, the changes were not getting picked up.

I'm very new to Node development so maybe there's something that's completely obvious to seasoned Node developers that I'm missing here.

Do I need to manually compile the Typescript files to JS before I can run? If so, how do I do that?

If I run tsc on the project, I get:
node_modules/@sinonjs/fake-timers/types/fake-timers-src.d.ts:11:28 - error TS2304: Cannot find name 'queueMicrotask'.

11     queueMicrotask: typeof queueMicrotask;

node_modules/@types/jsforce/query.d.ts:71:13 - error TS2368: Type parameter name cannot be 'never'.

71     finally<never>(): Promise<T>;

Found 2 errors.
Could that be the problem? How do I fix it?

Any help would be appreciated!

Nicolas VUILLAMY 14Nicolas VUILLAMY 14
Same problem here... I tried upgrading @salesforce/core , changing node and typescript versions... same result
Veronin SkadvizVeronin Skadviz
Not sure exactly how to overcome this.

Will update as soon as i found something with XAPK files
Frans Flippo 14Frans Flippo 14
I reported this as a GitHub issue ( as well.

The recommended workaround ( for now is to do:
yarn remove @types/node
yarn add @types/jsforce -D
yarn prepack

Baya AdamBaya Adam
Academic Master is a US based writing company that provides thousands of free essays to the students all over the World. If you want your essay written by a highly professional writers, then you are in a right place. We have hundreds of highly skilled writers working 24/7 to provide quality  essay writing services  to the students all over the World.