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

Friendlier error message on missing package.json #2

Closed
damassi opened this issue Aug 14, 2022 · 3 comments
Closed

Friendlier error message on missing package.json #2

damassi opened this issue Aug 14, 2022 · 3 comments

Comments

@damassi
Copy link

damassi commented Aug 14, 2022

Just saw your comment here and wanted to take for a spin! I too agree that Relay has some onboarding issues.

One issue I just encountered was after running npx @tobiastengler/create-relay-app and then getting the error Error: package.json file is missing. I initially thought that this would bootstrap whatever framework the user chose before setting up the Relay bits (eg, npx create-next-app), so seeing that issue was a bit confusing. Maybe something like

Error: package.json file is missing. Did you remember to setup <create-react-app|next|vite> before running this command?

Would fix the issue.

@tobias-tengler
Copy link
Owner

Thank you for the feedback, I'll incorporate it :)

@tobias-tengler
Copy link
Owner

The error message reads now as follows:

image

@damassi
Copy link
Author

damassi commented Aug 14, 2022

👌

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

2 participants