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
v-bind not working with computed properties #876
Comments
I cannot reproduce this using https://github.com/Ragura/dinkcreference :
I'm using Node 16 and pnpm 7.2.1. |
I am not able to reproduce this either. Are you sure you have pushed your latest code to GitHub? Also please try using latest alpha releases, we have fixed a lot of bugs since 0.x. |
The latest code is on Github. However, I now also updated to 1.0 alpha 4 and migrated a few settings (not all yet). The site works locally again, but still fails to build. It's not just my machine that doesn't want to build it, Netlify fails its deploy as well with the same error during build. |
There is some issue with |
Thanks for pointing out the source of the issue, although it is still quite strange. I am using <style scoped>
.colorblock {
...
background-color: v-bind(backgroundColor);
...
}
</style> It works fine when running the site in dev mode, but it is indeed the culprit that makes the build fail. Removing the In any case, I have to really thank you for finding the root cause of the issue. I am very curious how you came to that conclusion by the way. How did you debug it? |
Yeah probably some bug with VP or its deps. We'll look into that. It is happening only with
Refer this: https://stackoverflow.com/help/mcve
|
Ah, I see. Thank you for taking the time and trouble to assist with this issue, it's much appreciated! I'll keep the issue open in case you want to track it for the bug. Feel free to close it if not needed. |
I'm closing this here as it is a bug with Vue itself. Track vuejs/core#6201 for updates. |
Minimal Reproducible Example: https://stackblitz.com/edit/vite-qjxpzz?file=docs%2FHelloWorld.vue (run
vitepress build docs
)Describe the bug
I just had a live Vitepress site hosted on Netlify, using Vitepress 0.20.4 (EDIT: it's now at 1.0.0 alpha 4), fail a build with only content having changed. The site is publicly available on Github for reproduction: https://github.com/Ragura/dinkcreference.
Using
pnpm docs:build
command I get:It is not using any outside packages, just pure Vitepress with Docsearch enabled.
If I run dev/serve commands, it works just fine locally. Only when building does it fail. Any idea what could be causing this?
Reproduction
Clone https://github.com/Ragura/dinkcreference.
Run
pnpm docs:build
Expected behavior
It should build, but fails.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: