Skip to content

Serve using ionic lab #641

@Flusinerd

Description

@Flusinerd

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions