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

Serve using ionic lab #641

Open
Flusinerd opened this issue Aug 12, 2022 · 0 comments
Open

Serve using ionic lab #641

Flusinerd opened this issue Aug 12, 2022 · 0 comments

Comments

@Flusinerd
Copy link

Hello.
Is it possible to run a ionic app inside the nx-monorepo using ionic labs?

ionic serve --lab

I tried adding this command to my nx config like so:

...
"labs": {
  "executor": "nx:run-commands",
  "options": {
    "command": "ionic serve --lab",
    "cwd": "apps/farmer-companion",
    "parallel": false
  }
},
...

But it errors out, cause ionic cannot find the workspace:

> ng.cmd run app:serve --host=localhost --port=8100
[ng] Error: This command is not available when running the Angular CLI outside a workspace.

[ERROR] ng has unexpectedly closed (exit code 1).
        
        The Ionic CLI will exit. Please check any output above for error details.

 >  NX   ERROR: Something went wrong in run-commands - Command failed: ionic serve --lab

   Pass --verbose to see the stacktrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant