diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-07-27 12:27:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 16:27:01 +0000 |
commit | cfc0c806420cd44ea4422f6e6b83771a9597748a (patch) | |
tree | 9dbdcbae07e83e1632e595d2d711e0eead42b819 /ext/node/resolution.rs | |
parent | 02d6bbff2c72817c9a9d6346b4bfd8ed25379ea3 (diff) |
fix(node): package path not exported error - add if types resolution was occurring (#19963)
Diffstat (limited to 'ext/node/resolution.rs')
-rw-r--r-- | ext/node/resolution.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/node/resolution.rs b/ext/node/resolution.rs index 143edb6fe..ce02f31f2 100644 --- a/ext/node/resolution.rs +++ b/ext/node/resolution.rs @@ -367,7 +367,7 @@ impl NodeResolver { permissions, ) .with_context(|| { - format!("Error resolving package config for '{reference}'") + format!("Failed resolving package config for '{reference}'") })?; let resolved_path = match maybe_resolved_path { Some(resolved_path) => resolved_path, @@ -933,6 +933,7 @@ impl NodeResolver { package_subpath, package_json_path, referrer, + mode, )); } return Ok(resolved.unwrap()); @@ -994,6 +995,7 @@ impl NodeResolver { package_subpath, package_json_path, referrer, + mode, )); } } @@ -1002,6 +1004,7 @@ impl NodeResolver { package_subpath, package_json_path, referrer, + mode, )) } @@ -1447,11 +1450,13 @@ fn throw_exports_not_found( subpath: String, package_json_path: &Path, referrer: &ModuleSpecifier, + mode: NodeResolutionMode, ) -> AnyError { errors::err_package_path_not_exported( package_json_path.parent().unwrap().display().to_string(), subpath, Some(to_specifier_display_string(referrer)), + mode, ) } |