is example working ?
Hi,
I'm trying to follow your example but it seems there is a problem with the browser, I'm getting this error when runing the wc : Uncaught TypeError: Cannot read property 'props' of undefined at initialize (vue-wc-wrapper.js:113) at wrap (vue-wc-wrapper.js:261) at Module.WnQP (entry-wc.js:11) at webpack_require (bootstrap:19) at bootstrap:83 at bootstrap:83 But the wc seems to work !
Do you have the same error ?
Works fine for me. Here are the commands I used:
npm run build -- --wc
Then server the dist directory and it works
not sure this come from that so, maybe its due to vue-cli-service version, I'm running the 3.0.0-rc3
"build": "vue-cli-service build --name wc-name --target wc" + npm run build
Can you tell me the commands you are running and what is happening?
I'm running npm run build and having in package.json the build command vue-cli-service build --name wc-name --target wc
I don't get error when running it, the error is a console log at launch and is only when using the dist package into my html, but the component is running !
I'm not sure of the problem, sorry. It works for me following the same steps...
this error doesn't appear anymore after updating dev dependencies.. Thanks