You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default value of modernTargets is edge >= 80, firefox >= 72, chrome >= 80, safari >= 13.1, chromeAndroid >= 80, iOS >= 13.1.
For example, if my .browserslistrc is chrome > 63, then I used Promise.allSettled (available in Chrome >= 76).
Following the build process, if you attempt to open it in Chrome versions 64 to 79, you will encounter the error Uncaught TypeError: Promise.allSettled is not a function, as polyfills are not generated for these versions.
You must manually set modernTargets to chrome > 63 for it to work properly. It's confusing.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
The default value of
modernTargets
isedge >= 80, firefox >= 72, chrome >= 80, safari >= 13.1, chromeAndroid >= 80, iOS >= 13.1
.For example, if my
.browserslistrc
ischrome > 63
, then I usedPromise.allSettled
(available in Chrome >= 76).Following the build process, if you attempt to open it in Chrome versions 64 to 79, you will encounter the error
Uncaught TypeError: Promise.allSettled is not a function
, as polyfills are not generated for these versions.You must manually set
modernTargets
tochrome > 63
for it to work properly. It's confusing.Reproduction
https://stackblitz.com/edit/vitejs-vite-67qumq
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: