Maybe it is not a Vue specific problem I ran into, but it happened in my VueJs project. I tried to simplify the question, so the example project structure looks like: