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

Vite picking up styles only for root component #201

Closed
8 of 9 tasks
cawa-93 opened this issue Jul 12, 2023 · 2 comments
Closed
8 of 9 tasks

Vite picking up styles only for root component #201

cawa-93 opened this issue Jul 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@cawa-93
Copy link

cawa-93 commented Jul 12, 2023

Related plugins

Describe the bug

I create a custom element inside which I wrap a multi-components vue application. For some reason, vite ignores the styles of nested components and only inserts the styles of the root component.

In reproduction, expected two lines of text: one red and one green. Actual: two lines of text: one red and one black;

Reproduction

https://stackblitz.com/edit/vitejs-vite-djrzdx?file=src%2FApp.ce.vue

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.3 - /usr/local/bin/pnpm
  npmPackages:
    @vitejs/plugin-vue: ^4.2.3 => 4.2.3 
    vite: ^4.4.2 => 4.4.3

Used Package Manager

npm

Logs

No response

Validations

@IP-Developer
Copy link

Bump! Can confirm the same happens in our app.

@edison1105 edison1105 added bug Something isn't working p3-minor-bug 🔨 An edge case that only affects very specific usage (priority) and removed pending triage p3-minor-bug 🔨 An edge case that only affects very specific usage (priority) labels Sep 24, 2024
@edison1105
Copy link
Member

duplicate of vuejs/core#4662
fixed via vuejs/core#11517

@edison1105 edison1105 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants