Vue 3, mounting app respecting the static HTML inside the mounted element #11219
Unanswered
Verdoso
asked this question in
Help/Questions
Replies: 2 comments
-
Working through the same issue. Were you able to find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Unfortunately no, I was unable to find a solution, so I'm staying in Vue 2 for now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I have quite a bit of experience with Vue 2 and now I'm trying start with Vue 3. One issue I have found is that I used to generate a "client static" html generated server-side with the basic layout (using server side templates with security, reusable fragments etc.) and the main div with the id="app" and some <component..> declared inside and then "mount" the Vue 2 app without a template and start from that.
Now, if I mount the app without template in Vue 3, all of the HTML inside the #app element is gone and I have found no configuration to make it work like before. I tried to look up some option to do it, but all I find are messages from people trying to get the #app element to disappear, as before it would replace the element and now it is added as a child element.
I'm not seein this behaviour in the "breacking changes" list, If I read them correctly
Am I missing something?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions