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

Show friendly error if 'micro' peer dependency isn't met #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bbbrrriiiaaannn
Copy link

I got too excited to use micro-dev and installed it without regarding the npm WARN about my unmet micro peer dependency. The resulting Cannot find module 'micro/lib' error didn't spark an immediate understanding of the fix.

This change validates the availability of micro, and provides a friendlier error if it's missing.

I'd meant to use micro-dev to simulate Now V2's routing (starting from this comment)—since this was only in a development context I hadn't made a point of installing micro too. Although my error required a a few willful missteps on my part, my mistakes feel like the sort that other devs getting comfortable with micro-dev could make.

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

Successfully merging this pull request may close these issues.

None yet

1 participant