-
Notifications
You must be signed in to change notification settings - Fork 779
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
UX Bug in wrangler dev
#308
Comments
If we have a wrong path to src, we should simply quit the process with an error message. (We should do the check after |
Ok, I see we fail for publish, but in dev we just catch the error and leave the process running. We should end the process immediately. |
I looked into the code and found this, it appears that we caught the build errors for a reason. I think it's so that when |
Further digging, by default the code uses |
Is an invalid entry-point unrecoverable? I.e. what if we renamed the entry-point (causing the build to break) and then renamed it back again? If so, then perhaps we should not exit but instead just make sure that the UI doesn't get corrupted. |
Yeah, that's what I'm thinking about too.
…On Wed, Jan 26, 2022 at 12:33 PM Pete Bacon Darwin ***@***.***> wrote:
Is an invalid entry-point unrecoverable? I.e. what if we renamed the
entry-point (causing the build to break) and then renamed it back again? If
so, then perhaps we should not exit but instead just make sure that the UI
doesn't get corrupted.
—
Reply to this email directly, view it on GitHub
<#308 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3SDLCVMDITFNFX3KLBXUTUYBEALANCNFSM5M2CYABQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It's very unlikely that an entry point would get renamed. We can work on that usecase, but seems like overkill to design around that. In this scenario, it doesn't exist on the first run itself, and we should probably exit immediately imo. |
Fixed by #455 |
The prompt box for
wrangler dev
's tools is a bit glitchy as seen belowHow to reproduce
wrangle dev <wrong_path_to_src>
L
The text was updated successfully, but these errors were encountered: