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

css var got wrong scope id #2721

Closed
yoyoys opened this issue Dec 4, 2020 · 2 comments
Closed

css var got wrong scope id #2721

yoyoys opened this issue Dec 4, 2020 · 2 comments

Comments

@yoyoys
Copy link

yoyoys commented Dec 4, 2020

Version

3.0.4

Reproduction link

https://github.com/yoyoys/repro-css-var-problem

Steps to reproduce

  1. just add css vars by SFC style CSS variable injection (new edition) rfcs#231
  2. got wrong id:(
    image

What is expected?

css var render with currect component id

What is actually happening?

css var render with wired component id


By the way, fragment also wired.

@yyx990803
Copy link
Member

fixed in vue-loader 16.1.1: https://github.com/vuejs/vue-loader/releases/tag/v16.1.1

@yoyoys
Copy link
Author

yoyoys commented Dec 6, 2020

@yyx990803 thanks, how can I use newer vue-loader for vue-cli project?

This was referenced Jul 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants