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

Scoped style with > selector causes error #1888

Open
lucascool12 opened this issue Oct 1, 2024 · 1 comment
Open

Scoped style with > selector causes error #1888

lucascool12 opened this issue Oct 1, 2024 · 1 comment
Labels
bug Something isn't working needs investigation

Comments

@lucascool12
Copy link

Describe the bug

Creating a slide with a style element using the > selector (e.g. p > a) causes an error.

Minimal reproduction

Steps to reproduce the behavior:

  1. Go to https://sli.dev/new
  2. Add the following to a slide:
<style>
p > a {}
</style>
  1. See the error
The error
[plugin:vite:vue] Tags with side effect (<script> and <style>) are ignored in client component templates.

Environment

  • Slidev version: 0.49.29
  • Browser: Firefox 118.0.1
  • OS: Linux
@KermanX KermanX added the bug Something isn't working label Oct 10, 2024
@KermanX
Copy link
Member

KermanX commented Oct 10, 2024

Looks like an upstream bug... The transformation logic in Slidev is correct in test. However, I can't find a related issue/commit in https://github.com/unplugin/unplugin-vue-markdown or https://github.com/mdit-vue/mdit-vue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs investigation
Projects
None yet
Development

No branches or pull requests

2 participants