-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
When using pug lang in templates data state get's wiped out when updating a .vue Single File Component with Reactivity Transform #455
Comments
Start a new pull request in StackBlitz Codeflow. |
The bug is because of |
Thanks a ton! |
Let's track vitejs/vite-plugin-vue#232 |
Out of topic: @JordashTalon There is an official nuxt integration for vue-macros so you don't have to setup the vite plugin manually |
@so1ve I think my example is using the official nuxt integration for Vue-macros? Or am I implementing it wrong? |
Ah! I see, you are using a separate package (reactivity-transform), not the whole vue-marcos |
I'll try it with the nuxt vue macros integration, I wonder if that will fix it? |
I tested the nuxt integration docs from here: https://vue-macros.sxzz.moe/guide/nuxt-integration.html Unfortunately that does not solve the problem😭 |
Fixed, please upgrade to |
@sxzz If i'm using the Reactivity Transform Macro here: https://vue-macros.sxzz.moe/features/reactivity-transform.html how would I upgrade the vitejs plugin? I think it's added as a dependency to that module? Or should I manually install 4.3.2 as a new dependency? |
Actually it worked! I just did I'm wondering if the modules listed on these pages: Should be updated to automatically use that version of plugin-vue ? |
I'm not familiar to npm itself (I'm using pnpm). Since you're using Nuxt with Vite integration and it's unrelated to Vue Macros. So I don't think writing down into Vue Macros docs is suitable. Maybe |
Having a strange issue when using pug with reactivity transform macro.
If you have a simple template like this:
And a nuxt.config.ts like this:
First time you load the page it renders perfectly fine. But if you change the template then it seems to wipe out the data. See screenshots below:
If you change the template the data disappears during hot module reload:
Any ideas on a fix for this? It works fine without using Pug, but we use Pug extensively for development.
One side note, before using the Vue Macro we used reactivity transform like this:
And it worked fine, but Vue is removing that way of using Reactivity Transform.
Here is a minimum reproducible project:
https://stackblitz.com/edit/github-17oxys?file=pages%2Findex.vue
The text was updated successfully, but these errors were encountered: