code-shaper icon indicating copy to clipboard operation
code-shaper copied to clipboard

Inquirer options not working

Open m4ttheweric opened this issue 2 years ago • 3 comments

Hi there!

Love the idea of this project, and seems like something that would be useful for what we're building! However, I am running into an issue just getting going:

Mac OS Node LTS

When I run npx shaper I see the prompt Which plugin would you like to run? (Use arrow keys)

But the options don't seem to appear and even if I hit enter after moving the arrows, it gives an error:

Screenshot 2023-12-05 at 10 39 54 AM

Here's a GIF capture where I run the command, hit the arrow keys a few times, and press enter: Screen Recording 2023-12-05 at 10 42 00 AM

In this example I a running Warp terminal, but I have also tried it with the Mac OS Terminal, and I have also tried it with older versions of Node (tried with 18.6.0 since that's mentioned in the docs).

m4ttheweric avatar Dec 05 '23 16:12 m4ttheweric

Thanks for trying it out, @m4ttheweric. shaper is simply a driver program. It looks for code generation plugins installed in your repo to show the relevant prompts. Do you have any plugins installed? See Getting Started for details. If you have already done those steps, then let's explore more.

nareshbhatia avatar Dec 06 '23 06:12 nareshbhatia

Or perhaps, you did not install any plugins after the initial Turborepo install. See below steps in Getting Started:

# Do a clean install with the newly generated package.json file
rm -rf package-lock.json node_modules
nvm use        # use the required version of node
npm install    # install dependencies

# Install Code Shaper plugins that we will need for this project
npm install -D @code-shaper/react @code-shaper/plugin

nareshbhatia avatar Dec 06 '23 06:12 nareshbhatia

@m4ttheweric, curious if you got to try out the steps above.

nareshbhatia avatar Dec 07 '23 07:12 nareshbhatia