strapi icon indicating copy to clipboard operation
strapi copied to clipboard

IE/Edge browser support issues

Open HenrijsS opened this issue 4 years ago • 1 comments

Version

@nuxtjs/strapi: 0.3.0 nuxt: 2.14.12

Steps to reproduce

Open a Nuxt-Strapi app in IE/Edge in either Development or Production mode.

What is Expected?

For polyfills to kick in.

What is actually happening?

The app breaks completely and the only thing that's working is navigation.

Console shows an error that 0: Expected identifier, string or number The issues happens here on line 22: image

Is the Strapi module supported on older browsers? This is crucial for my current project.

For production it shows the same but the script's minified.

HenrijsS avatar Mar 10 '21 04:03 HenrijsS

It needs to be transpiled for IE11 support. Unfortunately I've not had much success. So far I have in nuxt.config.js:

  build: {
    transpile: [
      ({ isLegacy }) => isLegacy && "@nuxtjs/strapi",
    ],
  }

If you're using the modern setting then this will transpile the strapi module for the legacy browsers.

The problem is that while it transpiles and gets past the first error, I now see Loading chunk 37 failed and IE can't load some chunk of JS related to Strapi. I've tried adding all the nuxt strapi dependencies to the transpile array but that doesn't change anything.

tanc avatar Jul 11 '21 10:07 tanc