Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate root app (id="app") when creating vue3 project #5813

Closed
kirianguiller opened this issue Aug 22, 2020 · 2 comments · Fixed by #5852
Closed

Duplicate root app (id="app") when creating vue3 project #5813

kirianguiller opened this issue Aug 22, 2020 · 2 comments · Fixed by #5852

Comments

@kirianguiller
Copy link

kirianguiller commented Aug 22, 2020

Version

4.5.4

Reproduction link

https://github.com/kirianguiller/vue3-issue

Environment info

  System:
    OS: Linux 5.4 Ubuntu 20.04 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 10.19.0 - /usr/bin/node
    Yarn: Not Found
    npm: 6.14.7 - /usr/local/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: 79.0
  npmGlobalPackages:
    @vue/cli: 4.5.4

Steps to reproduce

  • Create a vue3 app with vue CLI 4.5.4
  • Run 'npm run serve'

What is expected?

Only one "id='app'" html element

What is actually happening?

Two "id='app'" html element


These duplicates are an issue i if we add some CSS styling for padding (for instance) as they will be duplicated and the padding will be summed.

I don't know if the problem come from the vue@cli default setup or from the vuejs3 mounting method.

PS : This duplication is not occuring for vue2 app.

@9mm
Copy link

9mm commented Sep 1, 2020

I also have this... what is this originating from?

@ghost
Copy link

ghost commented Sep 5, 2020

vue: version 3.0.0-rc.10
@vue/cli: version 4.5.4

The same issue when creating default templates from vue ui.

1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants