Nuxt.js: it has one error in IE 10锛歰bject is not defined find

Created on 13 Jun 2017  路  4Comments  路  Source: nuxt/nuxt.js

it has one error in IE 10锛歰bject is not defined find
image

This question is available on Nuxt.js community (#c755)

Most helpful comment

@webKity
Array.prototype.find is not possibly to statically transpile. You need polyfill. https://babeljs.io/docs/usage/polyfill/
You may do sth like below:

  1. cd test
  2. npm install --save babel-polyfill
  3. bundle polyfiil into vender, config the nuxt.config.js
    js module.exports = { build: { vendor: ['babel-polyfill'] } }

All 4 comments

steps:

  1. vue init nuxt/starter test
  2. cd test
  3. npm install
  4. npm run dev
  5. open http://127.0.0.1:3000/ in IE10
    and the error will come up

@webKity
Array.prototype.find is not possibly to statically transpile. You need polyfill. https://babeljs.io/docs/usage/polyfill/
You may do sth like below:

  1. cd test
  2. npm install --save babel-polyfill
  3. bundle polyfiil into vender, config the nuxt.config.js
    js module.exports = { build: { vendor: ['babel-polyfill'] } }

I tried it and it works锛宼hink you very much

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

uptownhr picture uptownhr  路  3Comments

jaredreich picture jaredreich  路  3Comments

o-alexandrov picture o-alexandrov  路  3Comments

surmon-china picture surmon-china  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments