-
-
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
Cannot read property 'android' of undefined #4051
Comments
Hi Thanks for filing this issue! Could you please provide a small reporduction on jsfiddle.net so we can debug this without trying to replicate this ourselves?` That would be very helpful, thanks! |
vue create demo。
|
Hi, encountered the same issue with any polyfill starting with const builtInsList = require('@babel/preset-env/data/built-ins.json') (I have @babel/preset-env@7.3.4) return includes.filter(item => {
return isPluginRequired(builtInTargets, builtInsList[item])
})
I can see that it has changed in the recent version of vue-cli and babel-env. |
Hello! We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label Thanks for being a part of the Vue community! 💪💚️ |
Should stay open, something indeed seems fishy |
Hello! We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label Thanks for being a part of the Vue community! 💪💚️ |
I also have this problem, when adding core-js. Unclear why... |
@jhildings Did you add |
I encountered a similar issue after updating to the latest Vue CLI Alpha+ Babel-Jest 24. Managed to fix it by changing the babel.config.js file to a .babelrc file and removing anything apart from the vue preset. A few remaining |
Encountering this also. |
In my case it was I was misspelling the polyfill.
|
Updating my module.exports = {
presets: [["@vue/cli-plugin-babel/preset", {
useBuiltIns: "usage",
polyfills: [
// module filenames from .\node_modules\core-js\modules\
'es.promise', // before "es6.promise"
'es.symbol', // before "es6.symbol"
],
}]]
} |
Still an issue on macOS with |
For me the error hasn't appeared in a while now... but it's also unclear why. Maybe we did an update of all the packages and it solved itself |
Got this working by reinstalling @vue/cli babel.config.js module.exports = {
presets: [['@vue/cli-plugin-babel/preset', {
polyfills: [
// modules you can find here: https://github.com/zloirock/core-js
'es.string.starts-with',
'web.url-search-params'
],
}]],
}; |
I have this error (I will update versions on my project)
package.json and babel.config.js
it happened after I use: |
I suppose it's fixed by this PR: #5543 If anyone encounters this issue again, please open a new issue with a reference to this one if you can follow up with more information. |
Version
3.7.0
Environment info
Steps to reproduce
It seem caused by'web.dom.iterable'
What is expected?
build is running
What is actually happening?
Cannot read property 'android' of undefined
It seem caused by'web.dom.iterable'
The text was updated successfully, but these errors were encountered: