blitz-js / blitz-js/legacy-framework

cannot install or run npx blitz commands - "route is not a function" error.

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

Description

### What is the problem?

When I try to install blitz I see an error.

bash-5.1# npx --yes blitz -v
TypeError: route is not a function
at /root/.npm/_npx/f8d2cc529b1ae519/node_modules/color-convert/index.js:67:15
at Array.forEach ()
at Object. (/root/.npm/_npx/f8d2cc529b1ae519/node_modules/color-convert/index.js:61:8)
at Module._compile (/root/.npm/_npx/f8d2cc529b1ae519/node_modules/@blitzjs/cli/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Module._load (node:internal/modules/cjs/loader:822:12)
at LazyLoader.loadModule (/root/.npm/_npx/f8d2cc529b1ae519/node_modules/@blitzjs/cli/node_modules/@salesforce/lazy-require/lib/LazyLoader.js:149:21)
at Function._load (/root/.npm/_npx/f8d2cc529b1ae519/node_modules/@blitzjs/cli/node_modules/@salesforce/lazy-require/lib/LazyLoader.js:125:29)
at Module.require (node:internal/modules/cjs/loader:1005:19)

### Paste all your error logs here:

```
see above
```

### Paste all relevant code snippets here:

no code just command line:
```
npx --yes blitz -v
```

### What are detailed steps to reproduce this?

1. see above.

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

```
see above
```

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

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with `npx --yes blitz -v` and compare the stack trace, especially the `color-convert/index.js` and `@blitzjs/cli` lazy-loading paths shown in the report. The issue names no repository source file or test; completion means the command installs and runs without the `route is not a function` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.