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

Boolean props shorthand does not work on components #123

Closed
cimchd opened this issue Nov 2, 2021 · 1 comment
Closed

Boolean props shorthand does not work on components #123

cimchd opened this issue Nov 2, 2021 · 1 comment

Comments

@cimchd
Copy link
Contributor

cimchd commented Nov 2, 2021

I am not sure which is the right project for this issue. But I encoutered a problem if I use the boolean shorthand for props on components with vite-ssg build.:

This works:

  <Comp :active="true" />

This doesn't:

  <Comp active />

Link to Vue SFC playground for a whole example (the error does not appear in the playground). In dev mode both variants are working.

This is the output of the playground with vite-ssg build:
image

<div class="active">This should be red</div><div class="">This should be red</div>

Probably more a vite or vue error?

@userquin
Copy link
Member

it seems there is a problem with vue, try updating to latest version

vuejs/core#4783

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

No branches or pull requests

2 participants