[Vuejs]-How to make a vuejs application work with IE 11 when using feathersjs

0👍

I believe the process should be the same as following the directions on the Vuetify website in the section of this page titled “IE11 & Safari 9 support” (scroll to the bottom): https://vuetifyjs.com/en/getting-started/quick-start

I’ve not had to do anything else in my projects, that I can remember.

0👍

I finally manage to solve this issue.

This is the babel.config.js config that does the trick:

module.exports = {
  presets: ['@vue/app'],
  plugins: ['@babel/transform-modules-commonjs']
}

Also there was a typo in my vue.config.js it should look like this:

// vue.config.js
module.exports = {
  baseUrl: '/',
  transpileDependencies: [
    '@feathersjs',
    'debug'
  ]
}

Finally, when using feathers this line wouldn’t work:

.configure(restClient.fetch(window.fetch))

so you can use import 'whatwg-fetch' to solve it (remember to install it npm i whatwg-fetch)

👤nico

Leave a comment