Skip to content

Bug while building a web component: --port my-component? #2067

Closed
@katerlouis

Description

@katerlouis

Version

3.0.0-rc.10

Node and OS info

npm 6.2.0 / node 10.7.0

Steps to reproduce

Use vue ui
Go to build
Go to settings
Change target to: webcomponent
Change Name to: my-component
Save settings
Press "build"
Enjoy the error :(

What is expected?

No error

What is actually happening?

The following error is thrown:

$ vue-cli-service build --mode development --dest dist --target wc --port my-component--dashboard

 ERROR  --name must contain a hyphen when building a single web component.

Apparently the command that's being executed is wrong? (I'm a command line rookie)

--port my-component seems wrong to me
According to this link https://cli.vuejs.org/guide/cli-service.html#vue-cli-service-build it should be

--name my-component

right?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions