question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Babel polyfill broken in 7.26.10

See original GitHub issue

Specifying

  // ember-cli-build.js
  let app = new EmberApp(defaults, {
    'ember-cli-babel': {
      includePolyfill: true,
    },
  });

will cause the following error on build:

Build Error (SourceMapConcat)

ENOENT: no such file or directory, open '/var/folders/7h/82hn6hyn1bngg96_xvhlmq040000gn/T/broccoli-34311LQfVtgUc1OgD/out-262-broccoli_debug_debug_5_vendor_js/vendor/babel-polyfill/polyfill.js'

Minimal reproduction: https://github.com/nickschot/babel-polyfill-repro

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
chriskrychocommented, Dec 17, 2021

I suspect it was an “unclean revert”[^1]: ea752c4 reverted 0d47e8b, but did not revert the bump to @babel/preset-env that was included there. Presumably there’s a difference in what the updated @babel/preset-env is requiring or not for the polyfill.

[^1]: this sounds hilarious 😂

1reaction
rwjbluecommented, Dec 22, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

babel/polyfill
Babel includes a polyfill that includes a custom regenerator runtime and core-js. This will emulate a full ES2015+ environment (no < Stage 4...
Read more >
ember-cli-babel | Yarn - Package Manager
This Ember-CLI plugin uses Babel and @babel/preset-env to allow you to use latest Javascript ... #430 Fix missing babel polyfill in vendor tree...
Read more >
ember-cli-babel
Babel comes with a polyfill that includes a custom regenerator runtime and core-js. Many transformations will work without it, but for full ...
Read more >
error Error: only one instance of babel-polyfill is allowed #401
I had a similar problem using webpacker. I was loading two javascript apps on the same page using the javascript_pack_tag . Each one...
Read more >
"Only one instance of babel-polyfill is allowed" error
Looks like the culprit is HtmlWebpackPlugin in my webpack config. If I remove this plugin, I the error goes away. · try changing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found