这是indexloc提供的服务,不要输入任何密码
Skip to content

mark resolve issues inside a try block as warnings #4414

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

Merged

Conversation

ForsakenHarmony
Copy link
Contributor

@ForsakenHarmony ForsakenHarmony commented Mar 31, 2023

Description

I also added source information to the resolve issues where possible

fix WEB-633

@vercel
Copy link

vercel bot commented Mar 31, 2023

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

Name Status Preview Comments Updated (UTC)
examples-cra-web 🔄 Building (Inspect) Apr 3, 2023 8:26pm
examples-nonmonorepo 🔄 Building (Inspect) Apr 3, 2023 8:26pm
examples-svelte-web 🔄 Building (Inspect) Apr 3, 2023 8:26pm
8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-gatsby-web ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-native-web ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-tailwind-web ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
examples-vite-web ⬜️ Ignored (Inspect) Apr 3, 2023 8:26pm
turbo-site ⬜️ Ignored (Inspect) Visit Preview Apr 3, 2023 8:26pm

@github-actions
Copy link
Contributor

✅ This changes can build next-swc

@github-actions
Copy link
Contributor

github-actions bot commented Mar 31, 2023

🟢 CI successful 🟢

Thanks

@padmaia
Copy link
Member

padmaia commented Mar 31, 2023

Should it be a warning or should it just be accepted?

@ForsakenHarmony ForsakenHarmony force-pushed the hrmny/web-633-unable-to-resolve-module-utf-8-validate branch from 28b451d to c1d693e Compare March 31, 2023 23:20
@@ -115,13 +115,15 @@ pub enum Effect {
/// The ast path to the condition.
ast_path: Vec<AstParentKind>,
span: Span,
in_try: bool,
Copy link
Member

Choose a reason for hiding this comment

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

I guess that doesn't need the flag, but nevermind...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, it is actually used

pkg = require("packages/found");
}

pkg.fn();
Copy link
Member

Choose a reason for hiding this comment

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

Probably need some snapshots and updates to the existing snapshots

@ForsakenHarmony ForsakenHarmony merged commit c2ac643 into main Apr 4, 2023
@ForsakenHarmony ForsakenHarmony deleted the hrmny/web-633-unable-to-resolve-module-utf-8-validate branch April 4, 2023 14:02
kodiakhq bot pushed a commit to vercel/next.js that referenced this pull request Apr 4, 2023
## Description

A require call inside a try block will only emit a warning instead of an error now.

I also added source information to the resolve issues where possible

### Example
```js
try {
  require("missing-module");
} ...
```
previously this would show an error in the overlay, now it's just a warning

## Additional Turbopack Updates

* vercel/turborepo#4414 (requirement for this)
* vercel/turborepo#4434
* vercel/turborepo#4447
* vercel/turborepo#4448
* vercel/turborepo#4446
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 25, 2024
…4414)

### Description

I also added source information to the resolve issues where possible


fix WEB-633
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Jul 29, 2024
…4414)

### Description

I also added source information to the resolve issues where possible


fix WEB-633
ForsakenHarmony added a commit to vercel/next.js that referenced this pull request Aug 1, 2024
…4414)

### Description

I also added source information to the resolve issues where possible


fix WEB-633
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.

3 participants