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

Vite update to Version 4.X let Volar preview Error on ERR_REQUIRE_ESM #2198

Closed
tyuterry opened this issue Dec 13, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@tyuterry
Copy link

tyuterry commented Dec 13, 2022

Now Vite version already update to 4.0.1 and it cause Error

// ./packages/preview/bin/vite.js:78

if (viteVersion.startsWith('3.')) {
	import('file://' + viteBinPath);
}
else {
	require(viteBinPath);
}

螢幕擷取畫面 2022-12-13 132919

It will go to line 82 because vite Version start with '4.'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants