-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Broken legacy build #2471
Comments
Looks like duplicate of #2442, but this solution doesn't work in the described case. |
@Eazymov since you're using yarn, as a temporal workaround similar to the one on #2442, you can try and use selective resolution to pin the version. https://classic.yarnpkg.com/en/docs/selective-version-resolutions/#toc-how-to-use-it |
It seems like a bug in @babel/standalone. After looked the source code, i found below code caused the bug.
all these variable are undefined. after changed to following format
the errors are gone. |
the code path trace back to @vitejs/plugin-legacy's this option
|
Thanks, this solved my problem! |
Closing as duplicate of #2442 |
Describe the bug
Building with plugin-legacy seems to be broken
Reproduction
yarn create @vitejs/app
(template -react + ts
)yarn add -D @vitejs/plugin-legacy
vite.config.ts
-yarn build
// errorSystem Info
vite
version: 2.0.5Logs (Optional if provided reproduction)
vite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: