The error went away after I added ember-source to the project's package.json file since this results in this.emberVersion being set and fs.readJsonSync not being called. I'm creating this issue as I couldn't find any information on that particular error and it took me a while to track down.
I updated an Ember app written in 2.x today. After using
ember-cli-update --to 3.4
I encountered the following error when runningember build
:The problem appears to be in
index.js
on line37
:The error went away after I added
ember-source
to the project'spackage.json
file since this results inthis.emberVersion
being set andfs.readJsonSync
not being called. I'm creating this issue as I couldn't find any information on that particular error and it took me a while to track down.