aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
16.33k stars 575 forks source link

"No build tool detected" error on Windows + Volta #1043

Open rtabulov opened 5 months ago

rtabulov commented 5 months ago

What version of million are you using?

1.0.0-rc.12 i guess

Are you using an SSR adapter? If so, which one?

nope

What package manager are you using?

npm (volta)

What operating system are you using?

Windows

What browser are you using?

n/a

Describe the Bug

I am trying to install @million/lint into an existing project that uses webpack, and I get this error

$ npx @million/lint@latest
┌  ⚡ Million Lint 1.0.0-rc.12
│
◇  Please select the packages you want to install
│  Million, Million Lint
│
◇  wizard-no-build-tool-detected ──────────────────────────────────────────────────────────────────────────────────────╮
│                                                                                                                      │
│  No build tool detected. No configuration file found in the current path: C:\Users\user\Desktop\icc\aikey_panel_web  │
│                                                                                                                      │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
└  Setup failed. Continue via http://million.dev/docs#manual-installation

│
◆  Please select your package manager.
│  ○ pnpm
│  ○ yarn
│  ○ bun
│  ● npm (Be sure you have npm installed.)
└

I am using volta as node/npm version manager

$ npm -v
10.7.0
$ node -v
v18.20.3

fails using git bash, cmd, powershell

What's the expected result?

npm installation detection

Link to Minimal Reproducible Example

cannot be reproduced on stackblitz

Participation

github-actions[bot] commented 5 months ago

Thanks for opening this issue! A maintainer will review it soon.

NisargIO commented 1 month ago

Hi @rtabulov, can you try using the latest version? Run the setup script npx million@latest. Once it's done, please restart your VSCode/Cursor.

You may need to install Milliont Lint manually on your project. Follow the instructions here: http://million.dev/docs#manual-installation.

If you still need help, please reply here.