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

Message for default rule could be clearer #786

Closed
jamestalmage opened this issue Apr 3, 2017 · 1 comment · Fixed by #1470
Closed

Message for default rule could be clearer #786

jamestalmage opened this issue Apr 3, 2017 · 1 comment · Fixed by #1470

Comments

@jamestalmage
Copy link

jamestalmage commented Apr 3, 2017

No default export found in module.

Should be

No default export found in referenced module "./foo".

The current wording does not make clear that the error is taking about the reference module, which left me troubleshooting the file with the import statement (which in this case also didn't have a default export - but I got really confused when I fixed that)

@ljharb
Copy link
Member

ljharb commented Apr 3, 2017

Sounds reasonable to me. Better error messages are always helpful.

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

Successfully merging a pull request may close this issue.

2 participants