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

fix: catch import map lookup error properly in ResolvingIssue #7167

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

ForsakenHarmony
Copy link
Contributor

@ForsakenHarmony ForsakenHarmony commented Jan 30, 2024

Description

The wrong error / not all errors were caught before.

This also adds the error trace to the error message.

Closes PACK-2325

Copy link

vercel bot commented Jan 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 5:20pm
examples-tailwind-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 5:20pm
examples-vite-web 🔄 Building (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 5:20pm
rust-docs ❌ Failed (Inspect) Jan 30, 2024 5:20pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 30, 2024 5:20pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-designsystem-docs ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm
examples-gatsby-web ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm
examples-native-web ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm
examples-nonmonorepo ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm
examples-svelte-web ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2024 5:20pm

Copy link
Contributor

github-actions bot commented Jan 30, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

Copy link
Contributor

✅ This change can build next-swc

Copy link
Contributor

github-actions bot commented Jan 30, 2024

⚠️ CI failed ⚠️

The following steps have failed in CI:

  • Turbopack Rust benchmark tests (mac/win, non-blocking)

See workflow summary for details

@@ -2042,7 +2042,7 @@ pub async fn handle_resolve_error(
request_type: format!("{} request", reference_type.into_value()),
request,
resolve_options,
error_message: Some(err.to_string()),
error_message: Some(format!("{:?}", err)),
Copy link
Member

@sokra sokra Jan 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
error_message: Some(format!("{:?}", err)),
error_message: Some(format!("{:?}", PrettyPrintError(&err))),

That should make it even nicer

Copy link
Contributor Author

@ForsakenHarmony ForsakenHarmony Jan 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, I guess I can refactor the output of ResolvingIssues to use that
edit: nvm that works without the styled string stuff

@ForsakenHarmony ForsakenHarmony merged commit e4da2de into main Jan 31, 2024
51 of 54 checks passed
@ForsakenHarmony ForsakenHarmony deleted the hrmny/catch-import-map-error branch January 31, 2024 00:54
kdy1 added a commit to vercel/next.js that referenced this pull request Jan 31, 2024
# Turbopack

* vercel/turborepo#7167 <!-- Leah - fix: catch
import map lookup error properly in `ResolvingIssue` -->
* vercel/turborepo#7182 <!-- Donny/강동윤 - feat:
Re-enable `preset-env` mode of `styled-jsx` in turbopack -->
* vercel/turborepo#7161 <!-- Tobias Koppers - add
support for globs in sideEffects field in package.json -->
* vercel/turborepo#7184 <!-- Donny/강동윤 - chore:
Update `swc_core` to `v0.89.6` -->

### What?

Update turbopack

### Why?

To test vercel/turborepo#7182 against internal
webapps.

### How?

 - Closes #57718

Closes PACK-2334
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…el/turborepo#7167)

### Description

The wrong error / not all errors were caught before.

This also adds the error trace to the error message.

Closes PACK-2325
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…el/turborepo#7167)

### Description

The wrong error / not all errors were caught before.

This also adds the error trace to the error message.

Closes PACK-2325
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…el/turborepo#7167)

### Description

The wrong error / not all errors were caught before.

This also adds the error trace to the error message.

Closes PACK-2325
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…el/turborepo#7167)

### Description

The wrong error / not all errors were caught before.

This also adds the error trace to the error message.

Closes PACK-2325
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.

2 participants