Questions tagged [babel-polyfill]

Babel Polyfill will emulate a full ES6 environment. This polyfill is automatically loaded when using babel-node.

Installation:

$ npm install babel-polyfill

To find more information :

265 questions
0
votes
1 answer

nuxtjs issue with IE11 compatibility_ object assign

I am suffered by IE compatibility. (my vue version is 3.1.0, nuxt is 2.3.4) It keeps error with Object.assign. Here is the list what I have tried. babel-preset-vue-app(https://www.npmjs.com/package/babel-preset-vue-app). Heard that it does not…
0
votes
1 answer

How do I solve ReferenceError: regeneratorRuntime is not defined

I've seen that issue a lot here but none of the solutions worked for me. I'm using NodeJS and had no issue until I changed the project's directory. Since then I can't get my code to work... I've included: import "@babel/polyfill" I'm using async /…
Linda
  • 99
  • 2
  • 11
0
votes
0 answers

Babel, npm, Polyfill and Object.assign config

I am currently trying to config babel for use with a Vue project and I am experiencing a Javascript error The object does not support the property or method 'assign' in Internet Explorer. I've reviewed a number of question and answers and have a…
lookbadgers
  • 988
  • 9
  • 31
0
votes
1 answer

React + Express Cannot get /login

I know there is a bunch of questions about this but none of them fixed my issue. I have a react client app with react router and when the user fails to login in my express i have ` app.post('/login',…
Kristian Kamenov
  • 347
  • 1
  • 3
  • 12
0
votes
1 answer

sl-vue-tree + vue-cli3.1 on ie11

I am Japanese and I am not good at English sorry. I am using vue-cli3.1. I want to use this module on ie11. https://github.com/holiber/sl-vue-tree It says you can use on ie11 with babel-polyfil. But I can'y use babel-polyfil correctly. I did "yarn…
Kuru
  • 1,417
  • 2
  • 13
  • 20
0
votes
1 answer

React application not loading on IE11

I am getting the below error in console of IE11 - SCRIPT5007: Unable to set property 'nextEffect' of undefined or null reference. I am using 6.26.0 version of babel-polyfill. I have added babel-polyfill in webpack.config.js. entry:…
Chetan Gawai
  • 2,361
  • 1
  • 25
  • 36
0
votes
1 answer

How to work with babel in cucumber js project?

I have a cucumber js 4.2.1 and I want to use babel before running the tests. I couldn't find any documentation/tutorial about this integration. Does anyone know how to do that? Bonus: Using the latest babel versions (7.0.0 (not beta)). To be…
Stav Alfi
  • 13,139
  • 23
  • 99
  • 171
0
votes
1 answer

Object.assign() in add-on in Ember app causes problems in IE11

I have an Ember app that uses several 3rd party add-ons. One of these add-ons uses Object.assign() which causes problem in IE11, specifically the error Error: Object doesn't support property or method 'assign' I know why this is happening, but…
0
votes
0 answers

Make IE wait for the babel-polyfill will be loaded from the external resource

I need to load babel-polyfill only for IE. Also it's required to make IE wait and do not perform the console.log('Checkpoint 2'); and code below it (including IeOnlyPolyfillTest.js) until babel-polyfill will be fully loaded from the external…
0
votes
1 answer

Polyfill not applied on imported files

I'm working on a Vue JS project in which I use ES6 syntax. I've added a polyfill by importing '@babel/polyfill' at the top of my app's entry point (main.js), which works for most of my project. The problem I've now encountered is that the polyfill…
Frank
  • 1,374
  • 2
  • 16
  • 34
0
votes
1 answer

Only one instance of babel-polyfill is allowed

I am getting the following error Uncaught Error: only one instance of babel-polyfill is allowed at Object.eval (index.js?db4d:10) at eval (index.js:29) at Object../node_modules/babel-polyfill/lib/index.js…
noblerare
  • 10,277
  • 23
  • 78
  • 140
0
votes
2 answers

Webpack multiple files entry bundle

Will webpack produce different results given a configuration like so: // webpack.config.js module.exports = { ... entry: { main: ['./index.js'], } } // index.js import 'babel-polyfill' ... vs. //…
William Boman
  • 2,079
  • 5
  • 26
  • 39
0
votes
0 answers

Vue.js2 Applications is not responding in IE Browser

I am new vue.js. My whole application is working fine in chrome and safari. But as I open my website in IE broweser(IE-11) it display a message "This page can't be displayed". I go through my stackover flow solution and found I have to add…
Pulkit Aggarwal
  • 127
  • 1
  • 3
  • 9
0
votes
1 answer

Babel polyfill transpiles selenium- webdriver's code in a way it can't run on Nashorn

I'm trying to run selenium-js on Nashorn (please, don't ask why I can't use java version of selenium). Nashorn (on java8) implements ES5. Current version of selenium-webdriver (3.6.0) written in ES6. I'm trying to transpile selenium-webdriver using…
long
  • 414
  • 4
  • 15
0
votes
1 answer

TypeError: undefined is not a function with karma test but I get the expected result from the function itself

Here is my function: const retrieve = (options = {page: 1, colors: []}) => { const limit = 10; var page = options.page || 1; const offset = (page * limit)-10; let color = options.colors || []; if…