Nuxt.js: SSR only serves static page, never hydrates in IE11.

Created on 7 May 2017  Â·  8Comments  Â·  Source: nuxt/nuxt.js

I'm running a basic nuxt.js website, works perfect on Chrome, Safari, Firefox and Edge.
One issue:
On IE11, it seems to only serve the static page, and the javascript bundle never hydrates the static page.

Any insight into how I might get around this issue?
Should I look into generating a static site or???

This bug report is available on Nuxt.js community (#c582)
help-wanted pending-repro

Most helpful comment

I convinced my boss that we didn't have to support ie11.

All 8 comments

How did you solve the issue?

I convinced my boss that we didn't have to support ie11.

I don't think this is a SSR issue.
The reason is because I tried generating a static bundle and serving the site with a koa server.
The same thing happened: index.html loads on IE11, but the javascript bundles were not being loaded.
My guess is that there is something in the _nuxt/nuxt.bundle.js files that IE11 doesn't like.

Maybe IE is in need of a polyfill? Probably Map/WeakMap, MutationObserver, requestAnimationFrame, or Promises.

I know when I was trying to get Aurelia building/executing in various permutations of IE, those were the culprits, so I imagine it might be the same in Vue.

i reckon you use babel-polyfill together with useBuiltIns option in babel preset – it's not a nuxt issue.

Vuex requires a Promises polyfill on IE11...

Check the following IE11 trace error, on click:

nuxtjs-vuex-error-ie-11

Yes, it was a polyfill issue. Adding in:

  build: {
    vendor: [
      'babel-polyfill'
    ],
    babel: {
      plugins: [
          ...
      ]
    },
  },

to my nuxt.config.js file, and adding require("babel-polyfill"); to layout/default.vue resolves this issue.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pehbehbeh picture pehbehbeh  Â·  3Comments

shyamchandranmec picture shyamchandranmec  Â·  3Comments

bimohxh picture bimohxh  Â·  3Comments

mikekidder picture mikekidder  Â·  3Comments

nassimbenkirane picture nassimbenkirane  Â·  3Comments