codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

After update microVM official template Vue + Vite stop working

Open wkra opened this issue 1 year ago • 17 comments

🐛 bug report

Preflight Checklist

  • [x] I have read the Contributing Guidelines for this project.
  • [x] I agree to follow the Code of Conduct that this project adheres to.
  • [x] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Description of the problem

After update microVM official template Vue + Vite stop working

How has this issue affected you? What are you trying to accomplish?

There is no more possibility to use devbox environment after microVM update

To Reproduce

  • create Devbox with official Vue Vite template
  • click button "Update to latest microVM"
  • error [plugin:vite:vue] @vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4. appears

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox
Browser
Operating System

wkra avatar Jan 28 '24 07:01 wkra

Hello! Could you share the original template you forked from? I tried just with the "Vue (Vite)" template but I couldn't repro the issue. It's an interesting issue, from what I can gather the code for the example is outdated in comparison to the dependencies.

CompuIves avatar Jan 29 '24 12:01 CompuIves

Hi :) I have selected a template from the screen: Capture73 Then I clicked the "Update to latest microVM button" in the top left corner. Capture74 And without any changes to the code, errors appear: Capture75 I tried to solve this somehow, but unfortunately without success. Link to the devbox from sceens: https://codesandbox.io/p/devbox/young-sky-76d998

wkra avatar Jan 29 '24 13:01 wkra

I have the same problem after updating microVM. Restarting the task and refreshing browser doesn't help:

Снимок экрана 2024-02-13 в 21 22 19

Before updating, template was working just fine.

Update: Just tried to update all the dev dependencies to the latest version. Now the error is gone. Works fine.

bogdan0083 avatar Feb 13 '24 14:02 bogdan0083

Thank you for confirming @bogdan0083 - The template isn't throwing these errors for us now even on load!

JamesACS avatar Feb 14 '24 11:02 JamesACS

Is this still an issue? We now have health checks on all our templates to ensure that nothing breaks again.

CompuIves avatar Mar 28 '24 12:03 CompuIves

Is this still an issue? We now have health checks on all our templates to ensure that nothing breaks again.

Yep. The error is still present:

[plugin:vite:vue] @vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.

Here's a newly created reproduction link: https://codesandbox.io/p/devbox/awesome-nash-k7rtks?file=%2Fpackage.json%3A12%2C20

If the error is not showing try to terminate vite server and run npm run dev.

Снимок экрана 2024-03-28 в 21 58 47

bogdan0083 avatar Mar 28 '24 14:03 bogdan0083

Hello @bogdan0083

I've just tried to replicate this and restarting the environment seems to resolve the issue.

Please could you confirm this?

JamesACS avatar Mar 29 '24 11:03 JamesACS

Hello @bogdan0083

I've just tried to replicate this and restarting the environment seems to resolve the issue.

Please could you confirm this?

Hmm, you're right. Clicking "Restart Devbox" actually resolves the issue. Thanks!

bogdan0083 avatar Mar 29 '24 12:03 bogdan0083

Hi there 👋🏼

I'm still getting this problem, and I can confirm it only happens on Codesandbox (devbox) because I was able to download the Devbox and run it without issues locally. Restarting the environment did not solve anything for me.

CleanShot 2024-04-02 at 15 01 08@2x

Here's the reproduction link: https://codesandbox.io/p/devbox/beeq-vuejs3-2d8p9t

dgonzalezr avatar Apr 01 '24 16:04 dgonzalezr

Hi @dgonzalezr! I forked your Devbox just now and then manually restarted the Devbox, and the preview works as expected. You can check my forked Devbox here.

Here's the option I used to restart the Devbox: image

Can you try again and confirm if it's working?

filipelima18 avatar Apr 02 '24 14:04 filipelima18

I also get this issue here. Creating a public devbox returns the error with Vue + Vite

The idea is to display some code and views to people who don't have an account on codesandbox. [ In my case : People going on my website are being redirected on Codesandbox. ] If they want to play with code they have to create an account. But with this displayed error, nobody will be tempted to create an account.

The restart devbox option isn't available for guests. There's no tool to restart the devbox here.

mho22 avatar Apr 17 '24 14:04 mho22

Hi @mho22. Are you embedding a public Devbox you created? If so, you should be able to restart the Devbox yourself so that it solves the error for guests.

filipelima18 avatar Apr 23 '24 08:04 filipelima18

Hi @filipelima18, I am using the githubbox url method to share my github project on codesandbox. Should I create a public Devbox from my own repo instead ?

mho22 avatar Apr 23 '24 08:04 mho22

Hi there @filipelima18

The issue is happening again: https://codesandbox.io/p/devbox/beeq-with-vuejs-forked-4l26fc?file=%2Fsrc%2Fviews%2FAbout.vue

CleanShot 2024-05-16 at 12 37 00@2x

Forking and restarting manually the DevBox makes no difference, the error is still there! 😕

Late Edit: I've managed to make it work again, but still quite annoying that this issue could appear any time.

dgonzalezr avatar May 16 '24 09:05 dgonzalezr

I'm got this issue in vite vue template too. I fix this use restart devbox button.

AlvinWang627 avatar Jul 17 '24 03:07 AlvinWang627

i've fixed this issue by downgrade vue to 3.3.x, it works

Xeonice avatar Aug 12 '24 14:08 Xeonice