I'm working on MEVN stack with GraphQL implementation. I had problems displaying my Vue application on IE11, but then I added babel-polyfill which provides support for vuetify and vue templates. Now vue application loads the vue templates but I have problems with vue-apollo.
I have tried using es6-promise and isomorphic-unfetch but I'm still facing with the vue-apollo errors
https://i.stack.imgur.com/LFHLL.jpg "vue-apollo errors"
Please also check if my config files are correct
babel.config.js
module.exports = {
presets: [
[
'@vue/app',
{
useBuiltIns: 'entry',
},
],
[ '@babel/preset-env' ],
],
sourceType: 'unambiguous',
};
main.js
import 'babel-polyfill';
import Vue from 'vue';
import 'isomorphic-unfetch';
import 'es6-promise/auto';
vue.config.js
transpileDependencies: ['vuetify'],
appoloConfig.js
// Create the apollo client
const apolloClient = new ApolloClient({
link,
cache: new InMemoryCache(),
connectToDevTools: true,
defaultOptions: {
query: {
fetchPolicy: 'network-only',
},
},
fetchOptions: { fetch },
});
I'm new to vue world, I'm trying to make my vue application work in IE as well, any help is much appreciated :)