Closed pgengler closed 7 years ago
FYI this also happens when installing ember-basic-dropdown
instead of ember-power-datepicker
(which brings in ember-basic-dropdown
as a dependency). Just in case that helps narrow things at all.
Hi,
seems related to this issue babel/babili/pull/517. I made a quick test and it seems that bumping babel-preset-babili version from 0.0.12 to 0.1.1 in https://github.com/ember-cli/broccoli-babili fixes it.
I am seeing this as well (using ember-power-select
which also depends on ember-basic-dropdown
)
Can you test with the latest version? Many bugs have been fixed in 0.2.0's underlying babili version...
Confirmed that this is fixed with 0.2.0. Thanks!
I'm not sure whether this is an ember-cli-babili problem (because all of the backtrace looks to be in there/dependencies) or with ember-power-datepicker because that's the only addon I've used so far that's had this issue, so I've reported it in both places (see https://github.com/cibernox/ember-power-datepicker/issues/17 for the related issue on ember-power-select).
In short, when
ember-power-datepicker
is included in an app that usesember-cli-babili
and theconfig/targets.js
file is configured to allow some native ES2015/ES2016 syntax (i.e., only targeting very modern browsers), the production build process fails.Steps to reproduce (using ember-cli 2.13.1):
ember new babili-test
cd babili-test
npm uninstall --save-dev ember-cli-uglify
ember install ember-cli-babili
config/targets.js
to removeie 9
(at this point, runningember build --env production
will succeed)ember install ember-power-datepicker
ember build --env production
The build fails with this error:
If you then revert
config/targets.js
(so that 'ie 9' is listed again) the build succeeds.