Skip to content

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

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

Closed
katerlouis opened this issue Aug 4, 2018 · 3 comments
Closed

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

katerlouis opened this issue Aug 4, 2018 · 3 comments

Comments

@katerlouis
Copy link
Contributor

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?

@katerlouis
Copy link
Contributor Author

katerlouis commented Aug 8, 2018

I still get the same bug

image

Although I updated to rc.11

image

I also updated the plugins separately by clicking on the update button in the gui

image

@Akryum
Copy link
Member

Akryum commented Aug 8, 2018

It's not released yet: https://github.com/vuejs/vue-cli/commits/dev

@katerlouis
Copy link
Contributor Author

Oh okay– it was just a coincidence that rc.11 has come out after I posted the bug and before you fixed it– So I can expect the bug fixed rc.12?

The always hated question: is there an ETA? :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants