building multiple web components in lerna project results in failure #4841
Labels
needs team repro
We acknowledged your report and will soon try to reproduce it
scope: cli-service build
Version
4.0.5
Reproduction link
https://github.com/Kong/kongponents/
Environment info
Steps to reproduce
In https://github.com/Kong/kongponents/, we are wanting to build components as web components:
yarn lerna exec "yarn vue-cli-service build --target wc \$(cat package.json | jq -r .source) --dest dist-wc"
entry.js
file is generated inside node_modules/@vue/cli-service/lib/commands/build/entry-wc.js withwindow.customElements.define('k-card', wrap(Vue, kCard))
of one of the package names...entry.js
file with unknown package kCardWhat is expected?
WC succeeds for every component, can run simultaneously, but it fails to build when building multiple at the same time.
What is actually happening?
I assume there are files generated for the builds, but they are not scoped so it doesn't support async builds.
It appears that if you run single command for package it runs successfully:
yarn vue-cli-service build --target wc packages/KButton/KButton.vue --dest dist-wc
The text was updated successfully, but these errors were encountered: