Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.readJsonSync is not a function error if ember-source is not in package.json #50

Open
trevordevore opened this issue Mar 26, 2021 · 0 comments

Comments

@trevordevore
Copy link

trevordevore commented Mar 26, 2021

I updated an Ember app written in 2.x today. After using ember-cli-update --to 3.4 I encountered the following error when running ember build:

fs.readJsonSync is not a function

The problem appears to be in index.js on line 37:

 bowerDirectory = fs.readJsonSync(bowerrcPath).directory;

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant