question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[@quasar/testing-quality] Unknown command "serve" when executing serve:test:lighthouse

See original GitHub issue

Software version

"devDependencies": {
    "@quasar/app": "^1.0.0-rc.6",
    "@quasar/quasar-app-extension-testing": "^1.0.0",
    "@quasar/quasar-app-extension-testing-e2e-cypress": "^1.0.0-beta.10",
    "@quasar/quasar-app-extension-testing-quality": "^1.0.0-beta.8",

What did you get as the error?

$ yarn run serve:test:lighthouse
yarn run v1.16.0
$ quasar serve test/lighthouse/reports/ --port 8789

 app Unknown command "serve" +2ms

Please note that running directly did work:

$ quasar serve test/lighthouse/reports/ --port 8789
# worked...

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:23 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
yahao87commented, Jan 15, 2020

I want to serve command serve through package.json-dependancy. Not global quasar/cli.

To solve this problem I am using @quasar/cli as devDependencies.
npm i -D @quasar/cli

2reactions
MichaelJColecommented, Nov 30, 2020

I also encountered this for serve:test:coverage and serve:test:lighthouse. I’m not exactly clear where these commands fit into my workflow yet.

Seems like the workaround is to run the quasar serve test/jest/coverage/lcov-report/ --port 8788 command directly in the shell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular CLI Error: The serve command requires to be run in ...
When running the terminal commands ng server or ng serve --live-reload=true , I'm getting this issue: The serve command requires to be run...
Read more >
The serve command requires to be run in an Angular project ...
The serve command requires to be run in an Angular project, but a project definition could not be ...
Read more >
ng serve - Angular
Option Description Value Type Default Value ‑‑hmr Enable hot module replacement. boolean false ‑‑host Host to listen on. string localhost ‑‑open Opens the url in default...
Read more >
Angular CLI - ng serve Command - Tutorialspoint
Sr.No. Option & Syntax Description 2 ‑‑aot=true|false Build using Ahead of Time compilation. 3 ‑‑baseHref=baseHref Base url for the application being built. 7 ‑‑deployUrl=deployUrl URL where...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found