I'm trying to update an app to ember-cli@2.7.0. I'm getting the error Cannot read property 'sourcemaps' of undefined from /node_modules/ember-browserify/lib/index.js:21:39. When I add a console.log(Object.keys(app)) right above that line, I get:
So, one of the calls doesn't have the app.options object. When I add app.options && to the line, the upgrade goes otherwise smoothly. I didn't change ember-browserify versions between ember-cli 2.6.3 and 2.7.0. It may be that there is a bug in ember-cli that should be sending you the options hash and isn't.
I'm trying to update an app to ember-cli@2.7.0. I'm getting the error
Cannot read property 'sourcemaps' of undefined
from/node_modules/ember-browserify/lib/index.js:21:39
. When I add aconsole.log(Object.keys(app))
right above that line, I get:So, one of the calls doesn't have the
app.options
object. When I addapp.options &&
to the line, the upgrade goes otherwise smoothly. I didn't change ember-browserify versions between ember-cli 2.6.3 and 2.7.0. It may be that there is a bug in ember-cli that should be sending you the options hash and isn't.