blitz-js / blitz-js/legacy-framework

Recipe installation error. Could not found recipe by name.

Open
#989 1 comment 0 reactions 0 assignees View on GitHub
kind/bug status/triage
Dominant language
JavaScript
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

### What is the problem?

Could not found receipt by name on 'blitz install'.

I tried:
`blitz install tailwind`
`blitz install material-ui`

and have same results
`ERROR Could not find recipe *name*`

Also try `blitz install`, then select 'tailwind'.
Result - `ERROR Could not find recipe "undefined"`.

Also try `blitz install https://github.com/blitz-js/blitz/tree/canary/recipes/tailwind`.
Result - `SyntaxError: Unexpected token u in JSON at position 0`.

### Paste all your error logs here:

Default
```
user@user ~/s/j/g/a/blitz-try (master) > blitz install tailwind
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env.local
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env
ERROR Could not find recipe "tailwind"

Please provide one of the following:

1. The name of a recipe to install (e.g. "tailwind")
- Available recipes listed at https://github.com/blitz-js/blitz/tree/canary/recipes
2. The full name of a GitHub repository (e.g. "blitz-js/example-recipe"),
3. A full URL to a Github repository (e.g. "https://github.com/blitz-js/example-recipe"), or
4. A file path to a locally-written recipe.
```
Without providing a name of a recipe
```
user@user ~/s/j/g/a/blitz-try (master) > blitz install
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env.local
Loaded env from /home/user/src/js/github.com/alexgoto/blitz-try/.env
✔ Select a recipe to install · tailwind
ERROR Could not find recipe "undefined"

Please provide one of the following:

1. The name of a recipe to install (e.g. "tailwind")
- Available recipes listed at https://github.com/blitz-js/blitz/tree/canary/recipes
2. The full name of a GitHub repository (e.g. "blitz-js/example-recipe"),
3. A full URL to a Github repository (e.g. "https://github.com/blitz-js/example-recipe"), or
4. A file path to a locally-written recipe.
```

### Paste all relevant code snippets here:

blitz install

### What are detailed steps to reproduce this?

1. blitz new blitz-try
2. cd blitz-try
3. blitz install tailwind *or*
4. blitz install

### Run `blitz -v` and paste the output here:

```
Linux 5.17 | linux-x64 | Node: v16.16.0

blitz: 0.45.4 (global)
blitz: 0.45.4 (local)

Package manager: yarn
System:
OS: Linux 5.17 Kali GNU/Linux Rolling 2022.2
CPU: (24) x64 Intel(R) Xeon(R) CPU X5675 @ 3.07GHz
Memory: 38.11 GB / 47.14 GB
Shell: 3.4.1 - /usr/bin/fish
Binaries:
Node: 16.16.0 - ~/.local/share/nvm/v16.16.0/bin/node
Yarn: 1.22.19 - ~/.local/share/nvm/v16.16.0/bin/yarn
npm: 8.11.0 - ~/.local/share/nvm/v16.16.0/bin/npm
Watchman: Not Found
npmPackages:
@prisma/client: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
blitz: 0.45.4 => 0.45.4
prisma: 3.16.0-integration-tmp-revert-node14.1 => 3.16.0-integration-tmp-revert-node14.1
react: 18.0.0 => 18.0.0
react-dom: 18.0.0 => 18.0.0
typescript: ~4.5 => 4.5.5
```

### Please include below any other applicable logs and screenshots that show your problem:

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `blitz install tailwind`, `blitz install material-ui`, and the interactive `blitz install` flow in a project created with `blitz new`, using the reported Blitz 0.45.4 environment. Trace the CLI recipe-install entry point and compare named, selected, and URL inputs. Done means valid recipe names, interactive selections, and supported repository URLs install without the reported lookup or JSON errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.