"vuex requires a promise polyfill in this browser"
See original GitHub issueRe-raising this as I don’t think it was solved in #260
We should just be able to install babel-polyfill
and then:
entry: {
'babel-polyfill': 'babel-polyfill',
app: './src/main.js'
},
But that’s a no go.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:17 (4 by maintainers)
Top Results From Across the Web
Vue Unit Test Error: vuex requires a Promise polyfill in this ...
I created a project using vue-cli and added vuex and vue-router in it. I am trying to setup a unit test for it,...
Read more >Error: [vuex] vuex requires a Promise polyfill in this browser
An error message everyone finds himself surprised to see once you start unit testing Vue components which have a dependency to vuex:
Read more >Vuex requires a promise polyfill in the browser - Ikechi Michael
A polyfill is a re-write of something that should come natively with the browser, used for older browsers that do not have such...
Read more >Fix vuex requires a Promise polyfill in this browser - hinty
When you start your Vue project in Safari or IE, you may face with: [vuex] vuex requires a Promise polyfill in this browser...
Read more >IE 11 Vuex Polyfill - Laracasts
I can't load the page in Internet Explorer 11 because it complains about polyfill . ... [vuex] vuex requires a Promise polyfill in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No idea what I’m doing wrong, but I’m still getting the same error with @DevanB’s final solution…
Edit: Got it working by adding
es6-promise.auto.js
to mykarma.conf.js
:…Still not sure why
import 'es6-promise/auto'
doesn’t work in Karma.@limichange that worked!
Again, thanks @LinusBorg for the help also (and the new knowledge!)
I’ll be glad to put in a PR for some documentation on the process, if wanted. This was the final solution: