Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed a Component, ran 'quasar dev', unknown command dev #17667

Closed
JHeroGR opened this issue Nov 29, 2024 · 4 comments
Closed

Renamed a Component, ran 'quasar dev', unknown command dev #17667

JHeroGR opened this issue Nov 29, 2024 · 4 comments
Labels
area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@JHeroGR
Copy link

JHeroGR commented Nov 29, 2024

What happened?

I renamed a component from 'TodosList' to 'TodoList', renamed every other reference to it, and then I ran the command 'quasar dev' to run the UI, and was greeted with the Error Unknown command dev.

What did you expect to happen?

After renaming the components and references, I ran the command 'quasar dev', and I should've gotten a localhost:9000/# run.

Reproduction URL

https://github.com/JHeroGR/quasar-todo-list

How to reproduce?

  1. create quasar project
  2. enter new component command (e.g. quasar new component TodosList)
  3. reference the TodosList
  4. rename the component name and any references from TodosList to TodoList
  5. run quasar dev

Flavour

Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)

Areas

Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)

Platforms/Browsers

Other

Quasar info output

Operating System        Linux(5.15.167.4-microsoft-standard-WSL2) - linux/x64
NodeJs                  20.13.1

Global packages    
  NPM                   10.5.2
  yarn                  Not installed
  pnpm                  Not installed
  bun                   Not installed
  @quasar/cli           2.4.1
  @quasar/icongenie     Not installed
  cordova               Not installe

Relevant log output

quasar dev


 .d88888b.
d88P" "Y88b
888     888
888     888 888  888  8888b.  .d8888b   8888b.  888d888
888     888 888  888     "88b 88K          "88b 888P"
888 Y8b 888 888  888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888  888      X88 888  888 888
 "Y888888"   "Y88888 "Y888888  88888P' "Y888888 888
       Y8b

  Running @quasar/cli v2.4.1

  Example usage
    $ quasar <command> <options>

  Help for a command
    $ quasar <command> --help
    $ quasar <command> -h

  Options
    --version, -v Print Quasar CLI version

  Commands
    info      Display info about your machine
                   (and your App if in a project folder)
    upgrade   Check (and optionally) upgrade Quasar packages
                   from a Quasar project folder
    serve     Create an ad-hoc server on App's distributables
    help, -h  Displays this message

  --------------
  => IMPORTANT !
  => Trigger this inside of a Quasar project (and npm/yarn/pnpm/bun install) for more commands.
  --------------


 Global Quasar CLI • ⚠️   Error  Unknown command "dev"

Additional context

i have also removed node_modules and package-lock.json and did a npm cache clean --force, and then re-ran npm install, i still got the same error as before.

@JHeroGR JHeroGR added kind/bug 🐞 Qv2 🔝 Quasar v2 issues labels Nov 29, 2024
@github-actions github-actions bot added area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite labels Nov 29, 2024
@yusufkandemir
Copy link
Member

You don't have @quasar/app-vite or @quasar/app-webpack installed in your package.json. You've probably removed it by mistake.

@yusufkandemir yusufkandemir closed this as not planned Won't fix, can't repro, duplicate, stale Nov 29, 2024
@JHeroGR
Copy link
Author

JHeroGR commented Nov 29, 2024

I didn't even touch the package.json when I renamed the component.

@yusufkandemir
Copy link
Member

In your commit first init, added Update, Add, and Delete functionality, you removed it:
image

As I said, it's probably by mistake and is not related to renaming the component. Just add it back, install deps, and you can continue as usual.

@JHeroGR
Copy link
Author

JHeroGR commented Nov 30, 2024

that is so weird, never touched it for sure, but ok thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli bug/1-hard-to-reproduce A reproduction is available, but it's hard to reproduce, so it has a lower priority. bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/quasar-cli-vite kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

2 participants