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
0 answers

'@babel/runtime-corejs3/core-js-stable/reflect/construct'

I am trying to update the old project but getting an error '@babel/runtime-corejs3/core-js-stable/reflect/construct' when trying to build the docker image. These are the dependencies - "@babel/plugin-transform-arrow-functions": "^7.10.1", …
Sac
  • 35
  • 9
0
votes
1 answer

Angular 15.1 - Infinite Loop on Change Detection when removing babel-polyfill

We had a an old babel-polyfill in our project. Now, when we remove it, Angular DevTools shows an infinite Change Detetction Loop with Source "Window.addEventListener:message". Anyone has an idea, whats wrong ?
0
votes
0 answers

general questions and setting webpack entry point as a jsx file using babel loader

Context: I'm somewhat new to web development; I started about 2-3 weeks ago and jumped right into the MERN stack to understand the bigger picture of how everything works together. And as I encountered problems or questions, I gradually filled in…
0
votes
1 answer

How to fix Missing class properties transform with react-sortablejs?

In an existing react project I installed react-soratablejs and it worked fine but later when I pulled the repo in some other place and did a npm install I started to get SyntaxError: ......./node_modules/react-sortablejs/dist/index.js: Missing class…
NavinRaj Pandey
  • 1,674
  • 2
  • 26
  • 40
0
votes
1 answer

React with Webpack 5: Split chunks creating individual chunks by route, but also still creating large main app.js file which is fetched every load

Just upgraded webpack 4 to webpack 5 on our react project that only required a few minor tweaks to get it to actually build. After being built and deployed, it appears that the code splitting aspect is working, but it also appears that a main app.js…
mateotherock
  • 235
  • 5
  • 16
0
votes
0 answers

Does babel have a preset to polyfill map, filter and include?

I'm looking through here (https://babeljs.io/docs/en/babel-plugin-transform-member-expression-literals) but can't seem to find them.
Mmm Donuts
  • 9,551
  • 6
  • 27
  • 49
0
votes
0 answers

can I both use babel v6 and v7 in my project?

My project was created several years ago, and it's use babel 6.x. Now, I need to import a plugin that depend on babel 7.x , and I try to use it, and didn't find problems yet, but I know it's a dangerous action to keep two different mainly babel…
fatpillow
  • 13
  • 4
0
votes
0 answers

Can't resolve 'babel-polyfill' in 'C:\Projects\{projectPath}' - Error in server

I am upgrading npm packages for a React project with 3-4 years behind. I managed to upgrade all npm packages and clean up webpack. However, when I run npm start , I have 2 errors as below: In fact, I do not have this file :…
0
votes
0 answers

How to remove babel-loader from React application?

I want to remove babel-loader from my React application. I'm trying to do is completely remove Babel from my project but I'm facing these issues: ERROR in ./index.js Module parse failed: Unexpected token (18:4) You may need an appropriate loader to…
sivasakthi
  • 101
  • 6
0
votes
1 answer

nuxtjs client_side problem old browsers like firefox 34

i have a problem with nuxt project in old browsers like Firefox version 34 anything i added on client side, dont show on browser everything are good on all new browsers anyone can help me ?
0
votes
0 answers

IE 11 polyfill-eventsource added missing EventSource to window

I'm from South Korea and Internet Explorer share is very high there. While constructing a website using Nuxt, IE suddenly started to get an [object error]. But I don't know exactly what caused this problem. [![enter image description…
0
votes
1 answer

Babel-standalone exist in production bundle

After production-mode build there is a babel-standalone module in my bundle. But i never installed this babel-standalone manually. And it doesn't exist in package.json either. But i installed the babel-polyfill in this project, does babel-standalone…
Nelson
  • 209
  • 2
  • 7
0
votes
1 answer

The plugins/built-ins 'es.const, es.let' passed to the 'exclude' option are not valid

When I run my Vue project, it's throwing an error in the terminal: Syntax Error: Error: [BABEL] /Volumes/A/workspace/website20/src/pages/about/main.js: @babel/preset-env: The plugins/built-ins 'es.const, es.let' passed to the 'exclude' option are…
HongYu
  • 11
  • 2
0
votes
0 answers

Can Polyfill override IE's bug?

On ES2019 Array.prototype.sort() must be stable sort. But IE11's sort() function doesn't support stable sort. So this program doesn't work correctly on IE11. someArray .sort((a, b) => a.att1 - b.att1) .sort((a, b) => a.att2 - b.att2) I know…
0
votes
0 answers

"Support for the experimental syntax 'jsx' isn't currently enabled" on Webpack/Babel/React project

I'm currently converting a package from rollup to webpack and I've been running into this error around every corner where it doesn't like react/jsx components. Is this still experimental technology or am I missing something obvious? Let me know if I…