-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Pug: using a named slot without prop receiving, results in a compilation error #634
Labels
Comments
joostdelange
changed the title
Pug: using a named slot without prop receiving results in a compilation error
Pug: using a named slot without prop receiving, results in a compilation error
Jul 28, 2020
underfin
added a commit
to rolldown/vite
that referenced
this issue
Jul 29, 2020
yyx990803
pushed a commit
to rolldown/vite
that referenced
this issue
Jul 30, 2020
yyx990803
added a commit
that referenced
this issue
Jul 30, 2020
fix #634 Co-authored-by: Evan You <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I use
<template lang="pug">
with thepug
npm package in my project.When I use a named slot from a component like this:
template(v-slot:header)
, it can't compile anymoreBut when I explicitly include the slot prop with it:
template(v-slot:header="slotProp"
, it does workThis always worked in vue-cli projects so I'm curious if this can be fixed in vite
Reproduction
https:/joostdelange/vite-pug-slot-bug
System Info
vite
version: 1.0.0-rc.3vue
version: 3.0.0-rc.4@vue/compiler-sfc
version: 3.0.0-rc.4Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.Uncaught SyntaxError: Unexpected token ':'
The text was updated successfully, but these errors were encountered: