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(check): attempt to resolve types from pkg before @types pkg #24152

Merged

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Jun 8, 2024

I've been meaning to fix this for ages, but I finally ran into it here:

https://github.com/dsherret/ts-ast-viewer/actions/runs/9432038675/job/25981325408

We need to resolve the @types package as a fallback instead of eagerly resolving it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Main:

---- specs::npm::check_prefers_non_types_node_pkg ----
command V:\deno\target\debug\deno.exe check --quiet main.ts
command cwd V:\deno\tests\specs\npm\check_prefers_non_types_node_pkg

panicked at tests\specs/mod.rs:393:12:
assertion failed: `(left == right)`

Diff < left / right > :
<error: Failed resolving types. Cannot find "lz-string"
<    at file:https:///V:/deno/tests/specs/npm/check_prefers_non_types_node_pkg/main.ts:1:47
<

@dsherret dsherret merged commit 31154ff into denoland:main Jun 9, 2024
17 checks passed
@dsherret dsherret deleted the fix_resolution_order_types_package branch June 9, 2024 00:05
nathanwhit pushed a commit that referenced this pull request Jun 13, 2024
…4152)

I've been meaning to fix this for ages, but I finally ran into it here:


https://github.com/dsherret/ts-ast-viewer/actions/runs/9432038675/job/25981325408

We need to resolve the `@types` package as a fallback instead of eagerly
resolving it.
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

2 participants