-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
modern build fails with nullish coalescing or optional chaining after upgrading caniuse-lite to latest #6449
Comments
Here's what I think is happening:
I believe this issue in the webpack repo is discussing effectively the same problem: webpack/webpack#10227 |
This just happened to me using my own private package as a dependency which didn’t transpile the optional chaining away. I fixed it by adding it to the
|
Hi I have been trying to fix this myself, have updated @vue/cli-service to 4.5.13. Still getting build errors for optionalChaining. I thought looking at the bugfix I dont need to add samsung 12.0 to .browserslistrc? |
I finally got it work. I had to add samsung 12.0 to .browserslistrc. Also I found that updating @vue/cli-plugin-babel to 4.5.13 caused issues so left mine at 4.5.12 |
It seems that #6459 does exactly that: add |
After regenerating yarn.lock and moving to Babel 7.14.5, I have the same error with |
for me changing the target on tsconfig.json to |
Version
4.5.12
Reproduction link
https://github.com/jacekkarczmarczyk/vue-cli-caniuse-bug
Environment info
Steps to reproduce
vue create test
, choose [Vue 2] babel, typescript, eslint, unit-jestadd some code with ?? or ?., run
yarn build --modern
What is expected?
succesfull compilation
What is actually happening?
Error started showing up after upgrading caniuse-lite from 1.0.30001214 to 1.0.30001219. In latest version there is no safari 13.1, ios_saf 13.* and samsung 12 anymore
Workaround
add
samsung 12.0
to.browserslistrc
(thanks to skirtle on discord)The text was updated successfully, but these errors were encountered: