ember-cli-babel-polyfills icon indicating copy to clipboard operation
ember-cli-babel-polyfills copied to clipboard

Default build (not prod) returns __chunk1_js.default$7 is not a function error

Open knownasilya opened this issue 6 years ago • 1 comments

evergreen.js:25 Uncaught TypeError: __chunk1_js.default$7 is not a function
    at evergreen.js:25
    at __babelPolyfillDefine (shared.js:10)
    at evergreen.js:1

This seems to happen when my evergreen and targets don't match. Notice 'last 1 Edge versions' missing in targets.

Using the following config:

    'ember-cli-babel-polyfills': {
      evergreenTargets: [
        'last 1 Chrome versions',
        'last 1 Firefox versions',
        'last 1 Safari versions',
        'last 1 Edge versions'
      ],
    },

And targets:

'use strict';

const browsers = [
  'last 1 Chrome versions',
  'last 1 Firefox versions',
  'last 1 Safari versions'
];

const isCI = !!process.env.CI;
const isProduction = process.env.EMBER_ENV === 'production';

if (isCI || isProduction) {
  browsers.push('ie 11');
}

module.exports = {
  browsers
};

knownasilya avatar Jan 25 '19 16:01 knownasilya

I never signed up for notifications from this repo, sorry about missing this 😩 will try to dig in when I get a chance

pzuraq avatar Aug 23 '19 18:08 pzuraq