turbo
turbo copied to clipboard
Improve error readability.
Description
Currently in a sloppy state to get feedback.
Proposed improvements:
- Bring link to the bottom of the message. My eye skips over the URL because it naturally jumps to the more verbose code output. With the URL at the bottom, I have the chance as a user to read the error and give it a fix. If I keep reading because I need more info, I make it to the link.
- Remove the diagnostic code. It doesn't mean anything to me as a user (and I'd imagine those of us on core would be able to sort out the error's location in source using other heuristics?).
Things to fix:
- The dangling
(link)at the top needs to actually become the link at the bottom. - The custom miette handler I'm adding isn't in a good location. I only dropped it in the file to hear what folks think.
- Tests.
Before:
After:
Testing Instructions
👀
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| examples-nonmonorepo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 15, 2024 1:46am |
| rust-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 15, 2024 1:46am |
8 Ignored Deployments
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| examples-basic-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-designsystem-docs | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-gatsby-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-kitchensink-blog | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-native-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-svelte-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-tailwind-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am | |
| examples-vite-web | ⬜️ Ignored (Inspect) | Visit Preview | Jun 15, 2024 1:46am |
🟢 CI successful 🟢
Thanks
🟢 Turbopack Benchmark CI successful 🟢
Thanks
After talking to @NicholasLYang, the (link) is possibly a bug in miette? https://github.com/zkat/miette/issues/383