Skip to content

Cannot watch on specific host #180

@minhchu

Description

@minhchu

Problem:

When I run preact watch --host "127.0.0.1" inside a preact project created with preact-cli, I got this screen:

preactcli

It seems that yargs package overrides the h alias option and turns it into a help command.

How to fix:

Delete the alias of host option resolves the issue.

preactcli2

Metadata

Metadata

Assignees

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