Skip to content

Building web component via cli works only once #3662

Open
@raibait

Description

@raibait

Version

3.5.0

Environment info

  System:
    OS: macOS 10.14.3
    CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
  Binaries:
    Node: 10.15.1 - /usr/local/bin/node
    Yarn: Not Found
    npm: 6.9.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 72.0.3626.121
    Firefox: Not Found
    Safari: 12.0.3
  npmGlobalPackages:
    @vue/cli: 3.5.1

Steps to reproduce

On a brand new vue cli project created with vue create I want to run a vue web component bundler. I run npx vue-cli-service build --target wc --name my-element *.vue from src folder and it compiles nicely. After that, every next try ends up with 404error from https://registry.npmjs.org/vue-cli-service.
It runs again after I remove package-lock and node_modules and npm install:
rm -rf node_modules package-lock.json && npm install
What am I doing wrong ?
image

What is expected?

to rebuild web component every time I want it

What is actually happening?

it runs only once, on a clean project and then got error 404 every next time


removing package-lock and node_modules , then 'npm install' helps

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