I’m having a problem with reactivity in one of my projects. I have a main project and want to dynamically add another project/component into my main project (writing a simple plugin system).
This is what my simple counter plugin component looks like (both as composition api and options api component):
My main project is based on Laravel and Laravel Mix as build tool. Everything works fine there.
For my plugin I used vue-cli to setup a new project and
vue-cli-service as build tool.
When I build that component and want to use it in my other project I lose reactivity in that component.
I already tried a lot of webpack configs and other fixes, but nothing worked. I then decided to write that component using options api instead of composition api and surprisingly that worked just fine!
My question now is what I could have done wrong with composition api or if this is a (known) bug in vue-cli or external components using composition api in general?